Skip to content

Input Fields Accessibility #882

Description

@Cadranel-Kael

Hi! I’m really loving MaryUI, it’s awesome to have an open-source alternative to FluxUI.
I noticed that the input fields are wrapped in <fieldset> elements. According to the W3C spec, “The <fieldset> element represents a set of form controls optionally grouped under a common name.” (W3C Spec).
I was wondering: why use a <fieldset> instead of a <div> or <label>? Also, <legend> elements don’t have the built-in functionality to focus the input when clicked, unlike <label> elements.
Furthermore, when using <x-input>, I noticed that there are two <label> elements surrounding the input.
Thanks again for your amazing work on MaryUI!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelpHelp me!

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions