-
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
Do not provide accessible labels by default, for example: "Provide icon description" #9466
Comments
@joshblack do you have examples of how to use this with class-based components? Might this be easier to just switch to |
@joshblack Is it fair to assume that we only want to update the non-obvious ones? Like a 'Close' icon with a default iconDescription of 'close' or say CopyButton having a "Copy to clipboard" for the copy icon would be sensible defaults |
There are several situations where we use
defaultProps
to provide a placeholder accessible label. In v11, these props should be treated as required with no default props.This may be tricky to get right with feature flags and most likely will require using the top-level feature flag package instead of being able to use a hook 😞
Below is a list of components that currently do this:
Note: there may have been some that have been missed, this was a quick search!
The text was updated successfully, but these errors were encountered: