-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Feature Request]: ariaLabel removal or deprecation log changes #17584
Comments
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team. |
Hey @ev-codes, the warning is intentional and it meant to let you know that you need to change |
@sstrubberg As far as I understand it, the issue reported here is that the instance of See for example carbon/packages/react/src/components/DataTable/DataTable.tsx Lines 165 to 166 in 647881b
The values returned include both A similar issue exists for a number of the other functions, e.g. Please reopen this issue. |
Yeah, sorry for the confusion, this is something we need to fix in all the applicable DataTable prop getters.
I'm not sure why the initial deprecation work didn't modify |
The problem
getSelectionProps()
(part of@carbon/react
) returnsariaLabel
as one of the properties.However,
<TableSelectAll>
logs a deprecation warning toconsole.warn
whenariaLabel
is passed into it. Unnecessary logs make it more difficult to find more important issues and slow down CI workflows.The solution
Either:
getSelectionProps()
no longer returnsariaLabel
<TableSelectAll>
should not log a deprecation warning when receivingariaLabel
Examples
Code:
Logs from test:
Application/PAL
No response
Business priority
None
Available extra resources
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: