Skip to content
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

Merged
merged 2 commits into from
May 29, 2018
Merged

Conversation

llorca
Copy link
Contributor

@llorca llorca commented May 22, 2018

Fixes #1745

also added a intent select in the icon example, so it's easy to test out

@llorca llorca requested a review from giladgray May 22, 2018 23:20
@blueprint-bot
Copy link

support dark intent colors on icons

Preview: documentation | landing | table

&.#{$ns}-intent-#{$intent} {
color: $color;
}

.#{$ns}-dark &.#{$ns}-intent-#{$intent} {
Copy link
Contributor

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;
Copy link
Contributor

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>
Copy link
Contributor

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)} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the prop, bud.

@palantir palantir deleted a comment from andio57 May 29, 2018
@llorca llorca requested a review from giladgray May 29, 2018 19:12
@giladgray
Copy link
Contributor

giladgray commented May 29, 2018

@llorca compile failure rebuild worked

@blueprint-bot
Copy link

address comments

Preview: documentation | landing | table

@giladgray giladgray merged commit 6b35059 into develop May 29, 2018
@giladgray giladgray deleted the al/icon-intents branch May 29, 2018 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants