Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- `CheckboxControl`: Fix disabled styles [#77132](https://github.com/WordPress/gutenberg/pull/77132).
- `FormTokenField`: Fix disabled styles. [#77137](https://github.com/WordPress/gutenberg/pull/77137)
- `Textarea`: Fix disabled styles [#77129](https://github.com/WordPress/gutenberg/pull/77129).
- `DateCalendar`: Fix disabled selected day having darker background than other disabled controls [#77138](https://github.com/WordPress/gutenberg/pull/77138).
- `Autocomplete`: Fix value comparison to avoid resetting block inserter in RTC ([#76980](https://github.com/WordPress/gutenberg/pull/76980)).
- `ValidatedRangeControl`: Fix `aria-label` rendered as `[object Object]` when `required` or `markWhenOptional` is set ([#77042](https://github.com/WordPress/gutenberg/pull/77042)).
- `Autocomplete`: Fix matching logic to prefer longest overlapping trigger ([#77018](https://github.com/WordPress/gutenberg/pull/77018)).
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/calendar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ $wp-components-calendar-preview-border-color: color-mix(in srgb, $components-col
}

&:disabled::before {
background-color: $components-color-disabled;
background-color: $components-color-gray-400;
}

&:hover:not(:disabled)::before {
Expand Down
1 change: 1 addition & 0 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

### Bug Fixes

- DataForm: Fix disabled state for date(time) control. [#77138](https://github.com/WordPress/gutenberg/pull/77138)
- DataViews: Fix `compact` density clipping and remove top/bottom padding. [#77054](https://github.com/WordPress/gutenberg/pull/77054)
- DataForm: Remove `text-transform` from `panel` field labels. [#77196](https://github.com/WordPress/gutenberg/pull/77196)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ function CalendarDateControl< Item >( {
timeZone={ timezoneString || undefined }
weekStartsOn={ weekStartsOn }
disabled={ disabled }
disableNavigation={ disabled }
/>
</Stack>
</BaseControl>
Expand Down
11 changes: 9 additions & 2 deletions packages/dataviews/src/dataform/stories/layout-regular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,16 @@ const fields: Field< SamplePost >[] = [
{
id: 'date',
label: 'Date',
type: 'date',
},
{
id: 'datetime',
label: 'DateTime',
type: 'datetime',
},
{
id: 'birthdate',
label: 'Date as options',
label: 'DateTime as options',
type: 'datetime',
elements: [
{ value: '', label: 'Select a date' },
Expand Down Expand Up @@ -324,7 +329,8 @@ const LayoutRegularComponent = ( {
status: 'draft',
reviewer: 'fulano',
email: 'hello@wordpress.org',
date: '2021-01-01T12:00:00',
date: '2021-01-01',
datetime: '2021-01-01T12:00:00',
birthdate: '1950-02-23T12:00:00',
sticky: false,
can_comment: false,
Expand Down Expand Up @@ -363,6 +369,7 @@ const LayoutRegularComponent = ( {
'email',
'password',
'date',
'datetime',
'birthdate',
'filesize',
'dimensions',
Expand Down
Loading