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

Support for adding ARIA label to Numeral Date Field without displaying visible labels. #7146

Open
1 task done
siddhant-sage24 opened this issue Jan 7, 2025 · 3 comments

Comments

@siddhant-sage24
Copy link

Description

As a developer using Carbon, I want the Numeral Date Field component to support ARIA labels (such as aria-label or ariaLabe) without requiring a visible label, so that the component remains accessible for screen readers.

Suggested solution

Please can you add support for an aria-label/ariaLabel or similar prop in the Numeral Date Field component, allowing it to provide descriptive labels for screen readers without rendering visible labels.

Demo URL

No response

Alternatives

No response

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@siddhant-sage24 siddhant-sage24 changed the title Support for adding ARIA labels to Numeral Date Field without displaying visible labels. Support for adding ARIA label to Numeral Date Field without displaying visible labels. Jan 7, 2025
@sianford
Copy link
Contributor

sianford commented Jan 7, 2025

@ljemmo @harpalsingh can you please have a look at this and give your opinion on whether this should be an allowed state? It would result in the Numeral Date Input not having a visible label. This has only recently been brought in line with the DS.

@ljemmo
Copy link
Contributor

ljemmo commented Jan 8, 2025

I can think of some edge cases where this might be needed but its not actively something we would encourage for accessibility reasons. @siddhant-sage24 - do you have an example of the design you can share with us for more context. Feel free to DM me on slack.

@siddhant-sage24
Copy link
Author

I can think of some edge cases where this might be needed but its not actively something we would encourage for accessibility reasons. @siddhant-sage24 - do you have an example of the design you can share with us for more context. Feel free to DM me on slack.

Okay, I will connect with you on Slack @ljemmo

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

No branches or pull requests

3 participants