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(Tag): pass disabled state to tag button #8297

Merged
merged 3 commits into from
Apr 6, 2021

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Apr 5, 2021

Closes #7160
Refs #4792
Refs #6925

Prevents onClick from firing on an interactive tag when it is disabled.

Changelog

New

  • If the Tag is an interactive tag (button), passes along the disabled state to prevent click actions

Testing / Reviewing

Set the disabled knob to true for the default Tag story. Ensure no actions are logged when clicking on the disabled tags

@tw15egan tw15egan requested a review from a team as a code owner April 5, 2021 19:03
@tw15egan
Copy link
Member Author

tw15egan commented Apr 5, 2021

We could also modify the filter variant to handle this scenario as well, but we would need to make the entire tag focusable (need design input)

@netlify
Copy link

netlify bot commented Apr 5, 2021

Deploy preview for carbon-elements ready!

Built with commit 36a4d34

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

@netlify
Copy link

netlify bot commented Apr 5, 2021

Deploy preview for carbon-components-react ready!

Built with commit 36a4d34

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

@netlify
Copy link

netlify bot commented Apr 5, 2021

Deploy preview for carbon-elements ready!

Built with commit dd7776c

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

@netlify
Copy link

netlify bot commented Apr 5, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit dd7776c

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

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

looks good!

@kodiakhq kodiakhq bot merged commit 765796b into carbon-design-system:main Apr 6, 2021
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.

Investigate disabled tags firing onClick
3 participants