Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to extend classes for input type checkbox #1335

Open
LOBsTerr opened this issue Nov 10, 2023 · 0 comments
Open

Impossible to extend classes for input type checkbox #1335

LOBsTerr opened this issue Nov 10, 2023 · 0 comments

Comments

@LOBsTerr
Copy link

Checkbox component is missing drupal classes like "form-checkbox", this class can be used by some modules to target checkboxes. As result we are missing some UI interactions. The class on the input is hardcoded "ecl-checkbox__input" and we can't change it.

  <input
    id="{{ _id }}"
    name="{{ _name }}"
    class="ecl-checkbox__input"
    type="checkbox"
    value="{{ _value }}"
    {{ _disabled ? "disabled" }}
    {{ _checked ? "checked" }}
    {{ _helper_id is not empty ? "aria-describedby=\"" ~ _helper_id ~ "\"" }}
    {{ _extra_input_attributes|raw }}
  />

It would be great to us the same approach, which is used for a wrapper to allow to extend classes:

<div class="{{ _css_class }}"{{ _extra_attributes|raw }}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant