Skip to content

Commit be4208b

Browse files
chihsuanchihsuanoandregal
authored
DataViews: Implement Edit control for date field (#70836)
Co-authored-by: chihsuan <[email protected]> Co-authored-by: oandregal <[email protected]>
1 parent 64b9e71 commit be4208b

File tree

9 files changed

+673
-98
lines changed

9 files changed

+673
-98
lines changed

packages/dataviews/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
### Features
1515

1616
- Support Ctrl + Click / Cmd + Click for multiselecting rows in the Table layout ([#70891](https://github.com/WordPress/gutenberg/pull/70891)).
17+
- Add support for the `Edit` control on the date field type ([#70836](https://github.com/WordPress/gutenberg/pull/70836)).
1718

1819
## 5.0.0 (2025-07-23)
1920

packages/dataviews/src/components/dataviews-filters/filter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ const FilterText = ( {
309309

310310
return createInterpolateElement(
311311
sprintf(
312-
/* translators: 1: Filter name. 2: Min value. 3: Max value. e.g.: "Item count between (inc): 10-180". */
312+
/* translators: 1: Filter name. 2: Min value. 3: Max value. e.g.: "Item count between (inc): 10 and 180". */
313313
__(
314-
'<Name>%1$s between (inc): </Name><Value>%2$s-%3$s</Value>'
314+
'<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>'
315315
),
316316
filter.name,
317317
label[ 0 ],

packages/dataviews/src/components/dataviews-filters/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
line-height: $default-line-height;
2323

2424
.components-popover__content {
25-
width: 230px;
25+
width: 100%;
26+
min-width: 230px;
27+
max-width: 250px;
2628
border-radius: $grid-unit-05;
2729
}
2830

0 commit comments

Comments
 (0)