[Feature Request]: ariaLabel removal or deprecation log changes #17584
Open
Description
The problem
getSelectionProps()
(part of @carbon/react
) returns ariaLabel
as one of the properties.
However, <TableSelectAll>
logs a deprecation warning to console.warn
when ariaLabel
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:
<TableSelectAll {...getSelectionProps()} aria-label="entity table select all" />
Logs from test:
console.warn
Warning: This prop syntax has been deprecated. Please use the new `aria-label`.
Application/PAL
No response
Business priority
None
Available extra resources
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Assignees
Labels
Type
Projects
Status
⏱ Backlog