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 @@ -13,6 +13,7 @@

### Bug Fixes

- `ProgressBar`: Remove determinate transitions and use a slower, stepped indeterminate animation when reduced motion is preferred. ([#82490](https://github.com/WordPress/gutenberg/pull/82490))
- `ColorPalette`: Apply the computed contrast color to the selected checkmark now that the icon is stroke-based. ([#78812](https://github.com/WordPress/gutenberg/pull/78812))
- `CheckboxControl`: Color the checked and indeterminate icons with `color` rather than `fill`, so they stay visible now that those icons are stroke-based. ([#78812](https://github.com/WordPress/gutenberg/pull/78812))
- `BorderBoxControl`: Give the group of border controls an accessible name from the `label` prop, by rendering the wrapper as a `role="group"` associated with the label through `aria-labelledby`. A consumer-supplied `aria-labelledby` or `aria-label` takes precedence over `label` and names the group instead; the wrapper is only given the `group` role when one of the three provides a name. A hidden label (`hideLabelFromVision`) now renders as a `span` rather than a `label` element, matching the visible one ([#82279](https://github.com/WordPress/gutenberg/pull/82279)).
Expand Down
10 changes: 9 additions & 1 deletion packages/components/src/progress-bar/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ $indeterminate-indicator-width: 50%;
outline-offset: -2px;

width: var(--indicator-width);
transition: width 0.4s ease-in-out;

@media not (prefers-reduced-motion) {
transition: width 0.4s ease-in-out;
}

&.is-indeterminate {
--indicator-width: #{$indeterminate-indicator-width};
animation: indeterminate-slide 1.5s ease-in-out infinite;
transition: none;

@media (prefers-reduced-motion: reduce) {
animation-duration: 3s;
animation-timing-function: steps(4, end);
}
}
}

Expand Down
Loading