-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove remaining color sass function uses #4655
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4c53bfc
remove straglers
befbc78
removing commented out code and usused vars
1cd6488
Merge https://github.com/Shopify/polaris-react into follow-up-color-f…
66a7d96
hardcoding button border color
9af3dc6
added unreleased line item
abe67fd
removing button-outline-disabled use from button
9c92aec
Merge https://github.com/Shopify/polaris-react into follow-up-color-f…
1ab4105
disable lint error
d25be20
Update UNRELEASED.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,15 +150,16 @@ $stacking-order: ( | |
| } | ||
|
|
||
| .outline { | ||
| @include button-outline(color('ink', 'lighter')); | ||
| @include button-outline(var(--p-border)); | ||
|
|
||
| &.disabled { | ||
| @include button-outline-disabled(color('ink', 'lighter')); | ||
| background: transparent; | ||
| box-shadow: none; | ||
| } | ||
| } | ||
|
|
||
| .destructive.outline { | ||
| @include button-outline(color('red')); | ||
| @include button-outline(var(--p-border-critical)); | ||
|
Member
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. As above |
||
| } | ||
|
|
||
| .disabled { | ||
|
|
@@ -485,9 +486,12 @@ $stacking-order: ( | |
| border-bottom-left-radius: 0; | ||
| height: 100%; | ||
|
|
||
| // Because the outline border color has a 40% opacity, the left border appears darker than the rest of the borders because they are layered over one another. Reducing the opacity to zero for the connected disclosure when not focused gives us the expected border color. | ||
| // Note 1: Because the outline border color has a 40% opacity, the left border appears darker than the rest of the borders because they are layered over one another. Reducing the opacity to zero for the connected disclosure when not focused gives us the expected border color. | ||
| // Note 2: hardcoding this value because we can't use custom css properties in sass functions. Will clean up in a follow-up | ||
| // https://github.com/Shopify/polaris-react/pull/4655#discussion_r750793847 | ||
| &.outline:not(:focus) { | ||
| border-left-color: rgba(color('ink', 'lighter'), 0); | ||
| /* stylelint-disable color-no-hex */ | ||
| border-left-color: rgba(#d2d5d8, 0); | ||
| } | ||
|
|
||
| &:focus, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The
$outline-colorparameter doesn't seem to be used anymore. https://github.com/Shopify/polaris-react/blob/main/src/styles/shared/_buttons.scss#L118Perhaps we can just remove passing in the argument entirely:
@include button-outline()