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

InputNumber Add ID property for accesibility #1477

Closed
1 task
israelfloresdga opened this issue Nov 28, 2019 · 1 comment
Closed
1 task

InputNumber Add ID property for accesibility #1477

israelfloresdga opened this issue Nov 28, 2019 · 1 comment
Labels

Comments

@israelfloresdga
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

The next code

<label for="txt_number">Number: </label>
<a-input-number id="txt_number"/>

Generate this HTML, the input does not have id

<label for="txt_number">Number: </label>
<div class="ant-input-number">
<div class="ant-input-number-handler-wrap">
<span class="ant-input-number-handler ant-input-number-handler-up " unselectable="unselectable" role="button"
aria-label="Increase Value">
<i aria-label="icon: up" class="ant-input-number-handler-up-inner anticon anticon-up">...</i>
</span>
<span class="ant-input-number-handler ant-input-number-handler-down " unselectable="unselectable" role="button"
aria-label="Decrease Value">
<i aria-label="icon: down" class="ant-input-number-handler-down-inner anticon anticon-down">...</i>
</span>
</div>
<div role="spinbutton" class="ant-input-number-input-wrap">
<input autocomplete="off" class="ant-input-number-input" />
</div>
</div>

That does not comply with accesibility lines

What does the proposed API look like?

<a-input-number id="txt_number"/>
@github-actions
Copy link

github-actions bot commented Dec 8, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants