chriscoyier,
@chriscoyier@front-end.social avatar
cwilcox808,
@cwilcox808@c.im avatar

@chriscoyier
Safari treats (most) lists without bullets as not-lists after complaints from screen reader users that too many sites used the elements too often. The site developers had come down with "listitis," they saw any set of items as a list, regardless of how it was styled. This was compounded by the fact that VoiceOver is more verbose about lists than other screen readers.

Adding role="list" is saying, "no really, this is a list" and negating Safari's heuristics. Doing so should be done with care, asking "will users by helped by knowing how many items there are and what their position is as they navigate through them?" (Ask this of a hypothetical persona in your head or even better, ask in screen reader user testing.)

If a list uses pseudo-elements instead of the usual markers, maybe adding the explicit role is a good idea. If a list is a set of keyword tag links with display: inline and no markers, maybe not.

mherchel,
@mherchel@mastodon.social avatar

@chriscoyier Great post!

Personally I'd love to see some :where() in there (esp wrapping the :not() 's) to reduce some specificity.

chriscoyier,
@chriscoyier@front-end.social avatar

@mherchel Yeah particularly on the ones that are more specific than just a tag, that's a good idea.

chriscoyier,
@chriscoyier@front-end.social avatar

@mherchel Maybe even @layer the whole thing.

drhayes,
@drhayes@social.lol avatar

@chriscoyier Awww, the glitchy effect on the title on scroll up is gone! What happened?

I do that a few times every time I read an article on the site on my phone just to play with it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines