ni / ni/nimble

Radio group label does not provide accessible name

Open
#733 0 comments 0 reactions 1 assignee View on GitHub

@fredvisser is already working on this.

Since Feb 6, 2024.

enhancement needs investigation
Dominant language
TypeScript
Stars
39
Forks
14
Avg merge
1d 16h
Merged PRs (30d)
13

Description

🐛 Bug Report

The radio group has a slot that a client can supply a label for. Providing a label does not set the accessible name for the radio group.
See this discussion thread for original context.

💻 Repro or Code Sample

<nimble-radio-group>
    <label slot="label">The Label</label>
   ...
</nimble-radio-group>

🤔 Expected Behavior

There should be some way to provide a label that automatically sets the accessible name for the group to the label provided.

😯 Current Behavior

The radio group has no accessible name.

💁 Possible Solution

We have reported this to FAST (https://github.com/microsoft/fast/issues/6360), and we even tried submitting a fix, but they did not accept it (https://github.com/microsoft/fast/pull/6367) for reasons they explain in the discussion.

🔦 Context

We were implementing the radio button/group and were trying to meet a11y expectations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.