(no title)
chrisjshull | 4 years ago
For example, a <button> will have default tabindex=0 and respond to spacebar key presses, but you'd have to add that yourself if you put role=button on a <div>.
In short, if there is a semantic element that matches your need, use it.
extra88|4 years ago
Yes! This is known as The First Rule of ARIA.
admax88q|4 years ago
JoshTriplett|4 years ago
I'd be curious to see a somewhat-objective look at what's actually wrong with default browser styles, separating out well-established usability and design considerations from personal preferences and branding preferences. I wouldn't be at all surprised if there are near-universal things wrong with the default styles, and those might be possible to change if they can be separated out.
robin_reala|4 years ago
Of course, it’s worth putting the effort in to both looking good and working good, but if we’re going to pick one, we should go for the second.
shadowofneptune|4 years ago
pjc50|4 years ago
Your comment below about being difficult to style is more to the point.
loloquwowndueo|4 years ago
tanaypingalkar|4 years ago
anoncake|4 years ago
austincheney|4 years ago
inopinatus|4 years ago
Vinnl|4 years ago
extra88|4 years ago
brailsafe|4 years ago