• 
      

    Fix stylistic and accessibility issues with user roles.

    Review Request #14969 — Created March 26, 2026 and submitted

    Information

    Review Board
    release-7.1.x

    Reviewers

    User roles inherited the parent's foreground color, which wasn't always
    correct and could lead to color clashes. Now it defaults to using the
    standard foreground color. Custom badges are still free to override
    this.

    Accessibility was also a bit less than ideal. It was being conveyed as
    just a bunch of text. Now it's organized into list and listitem
    roles, with a label for the list.

    The outer element was also a <div>, which when it should have been a
    <span>, since it's meant to be inlined into other elements.

    Storybook has fixes for customizing the badge content for the story,
    and an outdated CSS file has been removed.

    Tested this in both Storybook and in Review Board, alongside some
    in-progress code for fixing other style issues.

    Summary ID
    Fix stylistic and accessibility issues with user roles.
    User roles inherited the parent's foreground color, which wasn't always correct and could lead to color clashes. Now it defaults to using the standard foreground color. Custom badges are still free to override this. Accessibility was also a bit less than ideal. It was being conveyed as just a bunch of text. Now it's organized into `list` and `listitem` roles, with a label for the list.
    6f889cea56d68e96b1f68a0ab350edc1b030fd2d
    Description From Last Updated

    This should use <span> now.

    daviddavid

    Typo: area-label -> aria-label

    daviddavid

    This should have role="listitem" to match.

    daviddavid

    Typo: area-label -> aria-label

    daviddavid
    david
    1. 
        
    2. Show all issues

      This should use <span> now.

    3. Show all issues

      Typo: area-label -> aria-label

    4. Show all issues

      This should have role="listitem" to match.

    5. Show all issues

      Typo: area-label -> aria-label

    6. 
        
    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.1.x (82d3cad)