Open
Description
Hello,
I am using eslint-plugin-jsx-a11y
in a custom component library. One of our custom components sets aria-expanded
based on a boolean variable:
@State() private _booleanVar: boolean;
renderComponent(): JSX.Element {
return (
<button aria-expanded={`${_booleanVar}`}>Test</button>
);
}
jsx-a11y/aria-proptypes
flags this as an error even though I'm converting a boolean to a string - is this a bug? Or is converting a boolean to string for aria-expanded
no longer recommended?
Metadata
Assignees
Labels
No labels