Open argyleink opened 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?
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'; }
}
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.