ithaka / pharos

JSTOR's design system
https://pharos.jstor.org
MIT License
123 stars 16 forks source link

Radio: validation message missing aria-describedby association #823

Closed sirrah-tam closed 1 month ago

sirrah-tam commented 1 month ago

Expected behavior The radio buttons that use the message attribute to include validation messaging to have programmatic association with the message through the aria-describedby attribute.

Actual behavior The radio button is missing this association, the aria-describedby is not applied to the radio button as is the case with the Checkbox component.

Steps to reproduce the issue

  1. Add a message attribute to a radio element
  2. Observe what is rendered and locate the underlying INPUT element
  3. Verify the aria-describedby association

Screenshots or code Checkbox example Radio button example

Pharos version 14.4.0