-
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(search): remove role attr and label from skeleton #4272
fix(search): remove role attr and label from skeleton #4272
Conversation
Deploy preview for carbon-components-react failed. Built with commit dd01ff9 https://app.netlify.com/sites/carbon-components-react/deploys/5d9fa54cc219e20008c99e2c |
Hey also, side note -- I noticed that this component is a class but maybe it doesn't need to be? I could do a quick little refactor to turn it into a simple functional component 🤔 Want me to do that in this PR? |
Deploy preview for carbon-elements ready! Built with commit dd01ff9 |
Deploy preview for the-carbon-components ready! Built with commit dd01ff9 https://deploy-preview-4272--the-carbon-components.netlify.com |
it looks good to go as-is but feel free to do the refactor in a separate PR if this gets merged in before you're able to push it and get re-reviews |
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.
If you wanna make it a fc that'd be great! Thanks for the pr.
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! 🎉
Closes #4179
Proposal to remove the
role="search"
attribute from this component and replace thelabel
element with a simplespan
. My reasoning here is that there doesn't appear to be a real need for the role attribute and alabel
element since this is a non-interactivediv
. This would also remove the DAP violations.Changelog
Changed
label
element to aspan
Removed
role="search"
attributehtmlFor
attribute