Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next and previous buttons need audible labels #10

Open
2 tasks
argyleink opened this issue Feb 23, 2024 · 2 comments
Open
2 tasks

Next and previous buttons need audible labels #10

argyleink opened this issue Feb 23, 2024 · 2 comments

Comments

@argyleink
Copy link
Contributor

todo:

  • swap > and < text content for Next and Previous text
  • hide text visually and replace with an icon

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
Copy link
Contributor Author

.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
Copy link
Contributor Author

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'; }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant