Skip to content

[Bug]: sp-number-field Increment/Decrement button labels #3273

Closed
@jnurthen

Description

@jnurthen

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

sp-number-field

Expected behavior

The Number field increase/decrease buttons should use less technical and more specific text

We should use Increase/Decrease NOT Increment/Decrement
We should also use the number fields label as part of the text

So For

<sp-field-label for="units">Package width</sp-field-label>
<sp-number-field
    id="units"
    style="width: 200px"
    value="4"
    format-options='{
        "style": "unit",
        "unit": "inch",
        "unitDisplay": "long"
    }'
></sp-number-field>

The buttons should be "Increase Package width" and "Decrease Package Width"

Actual behavior

Currently the buttons are labeled Increment/Decrement

Screenshots

No response

What browsers are you seeing the problem in?

Firefox, Chrome, Safari, Microsoft Edge

How can we reproduce this issue?

  1. Go to https://opensource.adobe.com/spectrum-web-components/components/number-field/
  2. Right Click on an increase/decrease button
  3. Inspect the Accessible Name in the Accessibility tab of Dev Tools

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions