-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(button): update icon only ghost button colors #5313
Conversation
Deploy preview for carbon-elements ready! Built with commit 97faa2f |
Deploy preview for carbon-components-react ready! Built with commit 97faa2f https://deploy-preview-5313--carbon-components-react.netlify.com |
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.
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.
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 |
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. |
Yeah they can always just set the icon to |
Ok cool, then how you have it is good. 👍🏻 Just need to update the disabled state icon to be |
ac92739
to
f8e77ad
Compare
@laurenmrice is this good to go? |
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.
There shouldn't be a background on the disabled state. only the icon needs to be disabled-02
Does the spec here (#5312) need to be updated then? |
oh sorry! yes, i just updated it to reflect that change. |
177e6e9
to
44e9e5f
Compare
@laurenmrice updated 👍 |
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.
awesome ! looks good to me 🙌🏻
Closes #5312
Sets icon fill to
icon-01
when using icon only ghost buttonChangelog
New
icon-01
Testing / Reviewing
Ensure icon only ghost button renders with
icon-01