Skip to content

Accessibility and Labeling #81

Open
@mikeldn

Description

@mikeldn

Hi,

Would it be possible/make sense to allow the binding of labels to inputs for accessibility ... I'm not sure, given the fact that the input is actually hidden if that would be the wrong approach or not?

Anyway, if it's possible, then something like:
Do you like cheese?

as per: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

My suggestion is, that if you add an id tag your markup, it should get carried through into the attribute?

On that page, they also talk about implicit association between label & input, like this:
Do you like peas?

Any thoughts, suggestions or upgrades would be appreciated!

P.S. Should add, I'm using the library via the Vue version: https://hamed-ehtesham.github.io/pretty-checkbox-vue/#more

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions