-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add more Octicon support #1694
Add more Octicon support #1694
Changes from 3 commits
95c8ca6
502a7b1
e2f9b09
25f1b3f
3984e97
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 | ||||
---|---|---|---|---|---|---|
|
@@ -46,6 +46,10 @@ | |||||
small { | ||||||
color: var(--color-fg-on-emphasis); | ||||||
} | ||||||
|
||||||
.octicon { | ||||||
color: inherit !important; | ||||||
} | ||||||
Comment on lines
+50
to
+52
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 allows adding colored Octicon icons to a
|
||||||
} | ||||||
|
||||||
&[aria-selected="true"], | ||||||
|
@@ -57,6 +61,10 @@ | |||||
small { | ||||||
color: var(--color-fg-on-emphasis); | ||||||
} | ||||||
|
||||||
.octicon { | ||||||
color: inherit !important; | ||||||
} | ||||||
} | ||||||
} | ||||||
} | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,11 +33,30 @@ | |
border-top-right-radius: $border-radius; | ||
border-bottom-right-radius: $border-radius; | ||
} | ||
|
||
.octicon { | ||
margin-left: $spacer-1; | ||
color: var(--color-fg-subtle); | ||
} | ||
Comment on lines
+37
to
+40
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 adds Octicon support for |
||
} | ||
|
||
.radio-input { | ||
z-index: 3; | ||
float: left; | ||
// stylelint-disable-next-line primer/spacing | ||
margin: 10px (-$spacer-5) 0 $spacer-3; | ||
|
||
&:disabled { | ||
position: relative; // enables z-index | ||
|
||
+ .radio-label { | ||
color: var(--color-primer-fg-disabled); | ||
cursor: default; | ||
background-color: var(--color-neutral-subtle); | ||
|
||
.octicon { | ||
color: inherit; | ||
} | ||
} | ||
} | ||
} |
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 adds support for Octicon icons in
.btn
in.flash
alerts. Without this override the icon picks up the color for icons outside of.btn
.