-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use svg icons as "mask" so their colors could be changed using CSS background-color #426
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e8273b5
Hides icon in IE
yvonnetangsu abfc56d
Use Bourbon @size mixin for width and height and rearrange properties
yvonnetangsu a4c45dc
Add helper mixin @ie-only for writing styles targeting only IE
yvonnetangsu 63d8622
Merge branch 'master' into 423-svg-icon-test
yvonnetangsu 0ad0ab0
Use @supports for browser detection instead
yvonnetangsu 983a85d
Better browser targeting - include Edge 18 and + but exclude Edge 17 …
yvonnetangsu 328db3a
Merge branch 'master' into 423-svg-icon-test
yvonnetangsu a01bc75
Merge master and tweak color map; add proper focus state for external…
yvonnetangsu 23ead0f
Replace link-inline with link in $core-colors and add link--alt (for …
yvonnetangsu 0e0227f
fix doc on @function color()
JBCSU 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@charset "UTF-8"; | ||
|
||
// | ||
// @ie-only | ||
// | ||
// A helper to write a query for IE-only styles | ||
// | ||
// Style guide: Mixins.IE-only | ||
// | ||
@mixin ie-only { | ||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | ||
@content; | ||
} | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@charset "UTF-8"; | ||
|
||
// | ||
// @ie-only | ||
// | ||
// A helper mixin to write a query for IE-only styles | ||
// | ||
// Style guide: Mixins.IE-only | ||
// | ||
|
||
@import | ||
'ie-only'; |
This file contains 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
@import | ||
// Utilities | ||
'ie-only/index', | ||
'accessibility/index', | ||
'animation/index', | ||
'breakpoint/index', | ||
|
This file contains 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 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 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 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.
I chose to replace
link
andlink--hover
withlink-inline
andlink-inline--hover
to be more explicit about the application. I don't want to have both, so let's decide. I prefer the-inline
variants, in which case please use those. But if you feel strongly thatlink
andlink--hover
are better, then please delete the ones I added and change all references to the-inline
map entries to matchThere 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.
I like having a clean default
link
color without any modifiers since we have cleanbg
,text
colors. Also, the-inline
makes me wonder if it only applies todisplay:inline
links. For example, the links in the vertical link list will probably take on this default link color, but it might be a bit strange if I apply the colorlink-inline
even though the link might be a block element.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.
Ok, then please delete the
-inline
options and update all references to them to refer to the shorter names.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.
Done! Added a link--alt and link--alt-hover for cases like the secondary button link style. I feel like the bright red link will appear on some sites in some other ways so I make that the link--alt color.
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.
Ok. I introduced an error in the doc for
@function color()
, so I fixed that.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.
Thanks!!