flackr / carousel

Explainer for a set of features allowing the creation of CSS customizable carousels.
Apache License 2.0
33 stars 5 forks source link

Next and previous buttons need audible labels #10

Open argyleink opened 7 months ago

argyleink commented 7 months ago

todo:

might be able to get away with a win win svg solution, where the svg icon has a text node. or a title on the button. needs tested, but screen readers need to know what the button does.

argyleink commented 7 months ago
.my-carousel {
  &::scroll-left-button  { content: 'arrow_back' }
  &::scroll-right-button { content: 'arrow_forward' }
}

this is how I've got it setup with an icon font, and it reads so nice. wonder how close we can match that?

argyleink commented 1 month ago

we should lean into the "alt text after content" feature

.my-carousel {
  &::scroll-left-button  { content: 'arrow_back' / 'previous'; }
  &::scroll-right-button { content: 'arrow_forward' / 'next'; }
}