buildo / react-cookie-banner

React Cookie banner which can be automatically dismissed with a scroll. Because fuck The Cookie Law, that's why.
http://react-components.buildo.io/#cookiebanner
MIT License
182 stars 19 forks source link

Accessibility Improvement: add parameter for button label #69

Open rhache opened 3 years ago

rhache commented 3 years ago

As far as I can tell there's no way to add custom attributes to the close cookie banner button. Would be great if html attributes such as title or aria-label (ie <button aria-label='Close cookies statement' class='button-close'>) could be added for screen readers where the icon isn't sufficient.

It should also be noted that the icon inside the button should have an aria-hidden="true" attribute