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

enh(NcCheckboxRadioSwitch): Allow to set aria-label #4903

Merged
merged 1 commit into from Dec 1, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Dec 1, 2023

☑️ Resolves

If no text should be shown currently you have to provide the label as a span with hidden-visually, because the aria-label would not be forwarded correctly.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

…text is shown

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews feature: checkbox-radio-switch Related to the checkbox-radio-switch component labels Dec 1, 2023
@susnux susnux added this to the 8.3.0 milestone Dec 1, 2023
@susnux
Copy link
Contributor Author

susnux commented Dec 1, 2023

Alternative would be disable forwarding attr and filter for any aria attribute and move them to the input.

@ShGKme
Copy link
Contributor

ShGKme commented Dec 1, 2023

Alternative would be disable forwarding attr and filter for any aria attribute and move them to the input.

Forwarding attrs (without filtering) may make sense as this component is (sometimes) an <input> wrapper.

But we already have a long list of <input>'s attrs in props anyway.

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 1, 2023
@Pytal Pytal merged commit 8a2c612 into master Dec 1, 2023
15 checks passed
@Pytal Pytal deleted the enh/allow-aria-label-on-checkbox branch December 1, 2023 17:18
@ShGKme ShGKme mentioned this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request feature: checkbox-radio-switch Related to the checkbox-radio-switch component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants