-
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(Tag): added new prop titleText to specify title on clear #4163
fix(Tag): added new prop titleText to specify title on clear #4163
Conversation
Deploy preview for the-carbon-components ready! Built with commit f0af3c0 https://deploy-preview-4163--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit f0af3c0 https://deploy-preview-4163--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit f0af3c0 |
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 sake of consistency can we refactor this to follow the translateWithId
pattern we have in the rest of the library?
for reference: https://github.com/carbon-design-system/carbon/blob/master/packages/react/src/components/ListBox/ListBoxField.js
@emyarod |
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.
Ignore me!
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.
Would we want to use the title
prop directly for this? Wasn't sure if it's being used elsewhere in the component but would be fine to use it directly
…/carbon into ankitious_modal-titleText-prop
@joshblack |
@joshblack I have changed props name to Please provide your suggestion. Thanks! |
@ankitious should be good with |
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.
looks good to me, just one small nitpick
cc @dakahn including you to double-check a11y on this if you have a sec, I think the component itself may already have an issue given that there is no button for the icon. If there are issues for this, and we're planning on addressing them in the a11y project, does the proposed solution here align with whatever the ideal is? Trying to think if we should be using |
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.
This is fine. Being able to customize the title attribute doesn't really jam up anything we had planned. The aria seems to be adequate in so far as it's read properly by NVDA on Firefox.
Closes #4025
Changelog
New
Testing / Reviewing