Skip to content

InputNumber Add ID property for accesibility #1476

@israelfloresdga

Description

@israelfloresdga

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions