@akpekig
Posted
-
The
.rating
class has no flex wrap set, so by default, it won't wrap. Addflex-flow: row wrap
orflex-wrap: wrap
to the class in order for it to wrap when resized. -
You can focus on (and click) button elements by default. You can't focus on (or click) div elements by default. To make a div focusable, add the attribute
tabindex="0"
. Different values on the tab index attribute have different effects. This will then apply your focus state styling as intended. However, using a button (or input) element, in this case, is semantically more appropriate than using a div with a tab index.
Marked as helpful