Skip to content

Commit

Permalink
RangeControl: animate thumb and track only when using marks (#67836)
Browse files Browse the repository at this point in the history
Co-authored-by: ciampo <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
6 people authored Dec 12, 2024
1 parent f88ec2b commit 9437f7e
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ export const Track = styled.span`
margin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;
top: 0;
@media not ( prefers-reduced-motion ) {
transition: width ease 0.1s;
.is-marked & {
@media not ( prefers-reduced-motion ) {
transition: width ease 0.1s;
}
}
${ trackBackgroundColor };
Expand Down Expand Up @@ -203,8 +205,10 @@ export const ThumbWrapper = styled.span`
border-radius: ${ CONFIG.radiusRound };
z-index: 3;
@media not ( prefers-reduced-motion ) {
transition: left ease 0.1s;
.is-marked & {
@media not ( prefers-reduced-motion ) {
transition: left ease 0.1s;
}
}
${ thumbColor };
Expand Down

1 comment on commit 9437f7e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 9437f7e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12301929844
📝 Reported issues:

Please sign in to comment.