Coder Social home page Coder Social logo

Comments (2)

martymcguire avatar martymcguire commented on May 30, 2024 1

Thanks for kicking this off @ohhelloana !

I've been idly thinking about this for the past week and I am currently leaning towards using your proposal and wrapping it in a <div> something like this:

<div lang="en">
<a href="https://xn--sr8hvo.ws/previous" aria-label="Previous website in the IndieWeb webring">←</a> An IndieWeb Webring πŸ•ΈπŸ’ <a href="https://xn--sr8hvo.ws//next" aria-label="Next website in the IndieWeb webring">
</div>

While it seems that aria-label is still not translated by most translation software, the lang + aria-label hints should at least give screen reader users a clear reading of the English-only labels on the links.

In the interests of translate-ability, I'd prefer to do some kind of visually-hidden class for screenreaders only, but I think it's too far to include a CSS declaration for one, and feels difficult to document concisely.

Maybe it would be possible to start with the above as a default, then enhance it by offering an "advanced" widget to let you enter your own label texts and language indicator. An even more advanced step could be indicating whether your site already has a visually-hidden or sr-only class and applying that.

In general I love to try and "under-engineer" things so that they are concise and each piece makes sense to someone looking at it who might not have a deep understanding of HTML. However, accessibility takes priority over that!

Looking forward to others' thoughts!

from indiewebring.ws.

ohhelloana avatar ohhelloana commented on May 30, 2024

I do like the idea of an advanced/customisable output (for the future).

from indiewebring.ws.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.