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

fix(button): update icon only ghost button colors #5313

Merged
merged 5 commits into from
Feb 17, 2020

Conversation

tw15egan
Copy link
Collaborator

Closes #5312

Sets icon fill to icon-01 when using icon only ghost button

Changelog

New

  • Adds icon only ghost button back into react storybook
  • Fill is now icon-01

Testing / Reviewing

Ensure icon only ghost button renders with icon-01

@tw15egan tw15egan requested a review from a team as a code owner February 10, 2020 21:57
@ghost ghost requested review from abbeyhrt and dakahn February 10, 2020 21:57
@netlify
Copy link

netlify bot commented Feb 10, 2020

Deploy preview for carbon-elements ready!

Built with commit 97faa2f

https://deploy-preview-5313--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 10, 2020

Deploy preview for carbon-components-react ready!

Built with commit 97faa2f

https://deploy-preview-5313--carbon-components-react.netlify.com

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

For the disabled state, the icon needs to be disabled-02. I also think they should not get a tooltip when disabled and should get the disabled cursor change? (@dakahn may be able to confirm that though)

Can we have a way where we can switch between viewing it as icon-01 (being the default) and icon-02. Or is this something developers can change easily on their own end? I say this because the icon-02 is a frequent usecase when there are multiple of these icons in a row or near eachother.

@tw15egan
Copy link
Collaborator Author

Right now none of our button variations have specific props that can change color, but I guess we can add one. Is this similar to the light variations of inputs? Just unsure of the use case / why we need to have multiple icon colors for this variation, but none of our others have this feature.

@laurenmrice
Copy link
Member

laurenmrice commented Feb 11, 2020

It wouldn't be similar to the light prop. Is this something devs can easily change if they wanted to on their own? If so we can just keep the icon-01 and note in our doc guidance when to use icon-01 versus icon-02. People use this type of button differently within their UIs than other types of buttons (ex: as action icons on the page next to certain components, adding or deleting things, etc) and there are usecases for both.

@tw15egan
Copy link
Collaborator Author

Yeah they can always just set the icon to $icon-02 via their own css if needed

@laurenmrice
Copy link
Member

Ok cool, then how you have it is good. 👍🏻 Just need to update the disabled state icon to be disabled-02. It should not get a tooltip and should get the disabled cursor change instead.

@tw15egan
Copy link
Collaborator Author

@laurenmrice is this good to go?

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

There shouldn't be a background on the disabled state. only the icon needs to be disabled-02

@tw15egan
Copy link
Collaborator Author

Does the spec here (#5312) need to be updated then?

@laurenmrice
Copy link
Member

laurenmrice commented Feb 11, 2020

oh sorry! yes, i just updated it to reflect that change.

@tw15egan
Copy link
Collaborator Author

@laurenmrice updated 👍

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

awesome ! looks good to me 🙌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[icon button] add ghost icon button functionality to react
6 participants