-
Notifications
You must be signed in to change notification settings - Fork 2.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
[Core] support dark intent colors on icons #2541
Conversation
support dark intent colors on iconsPreview: documentation | landing | table |
&.#{$ns}-intent-#{$intent} { | ||
color: $color; | ||
} | ||
|
||
.#{$ns}-dark &.#{$ns}-intent-#{$intent} { |
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.
move this into the block above to avoid repitition.
&.intent {
color;
.dark & {
color;
}
}
|
||
export interface IIconExampleState { | ||
icon: IconName; | ||
intent: Intent; |
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.
match alph below. make this last.
@@ -38,16 +41,20 @@ export class IconExample extends React.PureComponent<IExampleProps, IIconExample | |||
value={iconSize} | |||
onChange={this.handleIconSizeChange} | |||
/> | |||
<H5>Example</H5> |
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.
nope, this is a prop! <Icon intent />
</> | ||
); | ||
|
||
return ( | ||
<Example options={options} {...this.props}> | ||
<Icon icon={icon} iconSize={iconSize} /> | ||
<Icon icon={icon} iconSize={iconSize} className={Classes.intentClass(intent)} /> |
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.
use the prop, bud.
|
address commentsPreview: documentation | landing | table |
Fixes #1745
also added a intent select in the icon example, so it's easy to test out