Having a Chakra UI icon button, I am facing an issue with the aria-label attribute. The IconButton is within an aria-hidden section in the tree; therefore, the label becomes redundant.
If I try to remove the aria-label, TypeScript throws complaints as shown below:
../../node_modules/@chakra-ui/button/dist/icon-button.d.ts:23:5
web:tsc: 23 "aria-label": string;
web:tsc: ~~~~~~~~~~~~
web:tsc: '"aria-label"' is declared here.
Is there a way to create a chakra icon button without including an unnecessary aria-label?