Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Vanilla JS REST Countries with Custom listbox and A11Y

Maciej• 140

@macadox

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


  • It's my first experiment with ARIA roles & states and designing a site for a screen reader. While controls (search form, dark mode, filter by region) are pretty straight forward, I am wondering how should I approach widgets of countries that are clickable. I labelled them as buttons to have the built in browser support. Is that OK? or should I create some other custom element?
  • I also recently heard that most of the screen reader users use headings as navigation. Should countries widgets in this case include <h2>${country.name}</h2>?

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord