News for hackers. Stuff that matters.
Re:Ask HN: I found opposition when improving the accessibili... by maury91 on Friday October 25, 2019 @07:27AM (#21353890)
the funny bit is the entire app is in React, and the attribute was leaking to the DOM, so to keep the unit tests and e2e tests work, I made the attribute go to the DOM as `data-role`. The attribute of the React component is still `role` so we can avoid a major refactoring.

There are no comments on this comment yet.