Giter VIP home page Giter VIP logo

Comments (5)

mugi111 avatar mugi111 commented on August 18, 2024 1

I understand what you said.
I will proceed to fix this issue in that direction.
Thanks for the advice.

from primo.

mugi111 avatar mugi111 commented on August 18, 2024

If you don't mind, I'd like to be in charge to this issue !

from primo.

mateomorris avatar mateomorris commented on August 18, 2024

Definitely! Let me know if you run into any issues

from primo.

mugi111 avatar mugi111 commented on August 18, 2024

@mateomorris
Thank you for your replay !

They'll all need to be changed to this:

// const uid = getUniqueId()  
<label for="{uid}" />
<input id="{uid}" />

Would it be preferable not to nest like this example?
Like here, for example.
https://github.com/primo-app/primo/blob/2c25dc7a721895555ec355b91d28226581dca23f/src/components/inputs/TextInput.svelte#L24
Or do I just add for property to label tag and id property to input tag?

from primo.

mateomorris avatar mateomorris commented on August 18, 2024

Actually, now that I look into it it looks like it's valid to nest the input inside the label (as long as the input isn't a button). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

So actually, it would be best if you left them nested and instead applied the the Svelte ignore-a11y-warning comments so the compile warnings stop showing up. Make sense?

from primo.

Related Issues (20)

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.