-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Tabs][Uplift]: Match hover and active colour #9619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,12 +133,8 @@ | |
| } | ||
|
|
||
| &:not([aria-disabled='true']):hover { | ||
| background-color: var(--p-color-bg-subdued); | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| color: var(--p-color-text-primary); | ||
|
|
||
| #{$se23} & { | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| } | ||
|
|
||
| &:not([aria-disabled='true']):focus-visible { | ||
|
|
@@ -149,13 +145,9 @@ | |
| } | ||
|
|
||
| &:not([aria-disabled='true']):active { | ||
| background-color: var(--p-color-bg-subdued); | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| color: var(--p-color-text-primary); | ||
| z-index: var(--p-z-index-1); | ||
|
|
||
| #{$se23} & { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| } | ||
|
|
||
| @media #{$p-breakpoints-md-up} { | ||
|
|
@@ -187,12 +179,9 @@ | |
| } | ||
|
|
||
| #{$se23} & { | ||
| background: var(--p-color-bg-subdued); | ||
| background: var(--p-color-bg-secondary-experimental); | ||
| color: var(--p-color-text); | ||
|
|
||
| #{$se23} & { | ||
| background: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| border-radius: var(--p-border-radius-2); | ||
|
|
||
| &[aria-disabled='true'] { | ||
| background: var(--p-color-bg-disabled); | ||
|
|
@@ -201,20 +190,12 @@ | |
|
|
||
| &:not([aria-disabled='true']):hover, | ||
| &:not([aria-disabled='true']):focus { | ||
| background-color: var(--p-color-bg-subdued); | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| color: var(--p-color-text-primary); | ||
|
|
||
| #{$se23} & { | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| } | ||
|
|
||
| &:not([aria-disabled='true']):active { | ||
| background-color: var(--p-color-bg-subdued); | ||
|
|
||
| #{$se23} & { | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -374,7 +355,7 @@ | |
| } | ||
|
|
||
| &:not([aria-disabled='true']):hover { | ||
| background-color: var(--p-color-bg-interactive-subdued-active); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. βΉοΈ This is the only change in the PR (the others are cleanup π§Ό π§Ή). This is behind the and this follows the |
||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| color: var(--p-color-text-primary); | ||
| } | ||
|
|
||
|
|
@@ -384,7 +365,7 @@ | |
| } | ||
|
|
||
| &:not([aria-disabled='true']):active { | ||
| background-color: var(--p-color-bg-interactive-subdued-active); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the Uplift Figma for |
||
| background-color: var(--p-color-bg-secondary-experimental); | ||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already under the primary
#{$se23}and just needed to be cleaned up.https://github.com/Shopify/polaris/blob/5e2c3c532a9a0ee7aa6fd49439be118364a44c0d/polaris-react/src/components/Tabs/Tabs.scss#L123