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 UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t
- Updated timeout of `Popover` exit to `durationFast`. ([#4651](https://github.com/Shopify/polaris-react/pull/4651))
- Reduced the size of the `progress` pip in `Badge` ([#4658](https://github.com/Shopify/polaris-react/pull/4658))
- Updated styling of `DropZone` border and overlay text. ([#4662](https://github.com/Shopify/polaris-react/pull/4662))
- Remove duplicate duration(fast) usage. ([#4682](https://github.com/Shopify/polaris-react/pull/4682))

### Bug fixes

Expand Down
4 changes: 2 additions & 2 deletions src/components/Checkbox/Checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@

transform: translate(-50%, -50%) scale(0.25);
opacity: 0;
transition: opacity var(--p-duration-1-0-0) var(--p-ease),
transform var(--p-duration-1-0-0) var(--p-ease);
transition: opacity duration(fast) var(--p-ease),
transform duration(fast) var(--p-ease);

@media (-ms-high-contrast: active) {
fill: ms-high-contrast-color('text');
Expand Down
4 changes: 2 additions & 2 deletions src/components/OptionList/components/Checkbox/Checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
pointer-events: none;
transform: translate(-50%, -50%) scale(0.25);
opacity: 0;
transition: opacity var(--p-duration-1-0-0) var(--p-ease),
transform var(--p-duration-1-0-0) var(--p-ease);
transition: opacity duration(fast) var(--p-ease),
transform duration(fast) var(--p-ease);

@media (-ms-high-contrast: active) {
fill: ms-high-contrast-color('text');
Expand Down
6 changes: 3 additions & 3 deletions src/components/RadioButton/RadioButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
border: var(--p-control-border-width) solid var(--p-border);
border-radius: 50%;
background-color: var(--p-surface);
transition: border-color var(--p-duration-1-0-0) var(--p-ease);
transition: border-color duration(fast) var(--p-ease);

&::before {
content: '';
Expand All @@ -66,8 +66,8 @@
width: var(--p-icon-size);
background-color: var(--p-interactive);
border-radius: 50%;
transition: opacity var(--p-duration-1-0-0) var(--p-ease),
transform var(--p-duration-1-0-0) var(--p-ease);
transition: opacity duration(fast) var(--p-ease),
transform duration(fast) var(--p-ease);

@media (forced-colors: active) {
@include high-contrast-border(rem(5px));
Expand Down
4 changes: 2 additions & 2 deletions src/styles/shared/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
background-color: var(--p-interactive);
opacity: 0;
transform: scale(0.25);
transition: opacity var(--p-duration-1-0-0) var(--p-ease),
transform var(--p-duration-1-0-0) var(--p-ease);
transition: opacity duration(fast) var(--p-ease),
transform duration(fast) var(--p-ease);
}

&.hover,
Expand Down