This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By using div elements, this makes the game inaccessible for screenreader and keyboard users.
Fortunately, in order to remedy this, all you have to do is refactor these into button elements.
Buttons typically have a lot of browser-specific styling associated with them, which drives this tendency to use an unstyled div as a clean slate for designing a custom UI element. However, you can use a CSS button reset to mitigate this and get your buttons looking the way that you want them to. CSS Tricks has a great blog on the subject.
The reason will be displayed to describe this comment to others. Learn more.
By using div elements, this makes the game inaccessible for screenreader and keyboard users.
Fortunately, in order to remedy this, all you have to do is refactor these into button elements.
Buttons typically have a lot of browser-specific styling associated with them, which drives this tendency to use an unstyled div as a clean slate for designing a custom UI element. However, you can use a CSS button reset to mitigate this and get your buttons looking the way that you want them to. CSS Tricks has a great blog on the subject.
By using
div
elements, this makes the game inaccessible for screenreader and keyboard users.Fortunately, in order to remedy this, all you have to do is refactor these into
button
elements.Buttons typically have a lot of browser-specific styling associated with them, which drives this tendency to use an unstyled
div
as a clean slate for designing a custom UI element. However, you can use a CSS button reset to mitigate this and get your buttons looking the way that you want them to. CSS Tricks has a great blog on the subject.