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

feat(button): add selected state to icon only ghost button #7784

Merged
merged 3 commits into from
Feb 23, 2021

Conversation

tw15egan
Copy link
Member

Refs #7757

Initial PR adding in selected support to icon only ghost buttons. More variants could be added later if needed.

Changelog

New

  • isSelected prop to Button, will only render isSelected styles if kind="ghost" and hasIconOnly props are supplied

Testing / Reviewing

Go to Button --> Playground and check the isSelected knob. Nothing should change. Now change the kind knob to ghost and the icon only button should receive selected styles.

@netlify
Copy link

netlify bot commented Feb 11, 2021

Deploy preview for carbon-elements ready!

Built with commit 7cdc072

https://deploy-preview-7784--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Feb 11, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 7cdc072

https://deploy-preview-7784--carbon-components-react.netlify.app

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

🎉 nice! thanks for adding it so fast.

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.

4 participants