Skip to content

Service Navigation's mobile menu button is listed on Voice Over rotor's Form control when hidden #6294

@romaricpascal

Description

@romaricpascal

Description of the issue

On a desktop viewport, VoiceOver's rotor shows the <button> used to toggle the Service Navigation mobile menu despite the element having a hidden attribute.

Steps to reproduce the issue

  • In Safari, with a viewport wider than 769px (our desktop breakpoint), open one of the examples for the Service Navigation in the review app (eg. the default example)
  • Open Voice Over with Cmd+F5
  • Access Voice Over rotor with Ctrl+Alt+u
  • Use the left and right arrow on your keyboard to navigate to the Form Controls list

Actual vs expected behaviour

The Form Controls list shows a "button" entry corresponding to the hidden <button> used to toggle the Service Navigation's visibility on mobile. The list should not show that button.

Screenshot of Voice Over's rotor showing a list of Form Controls. The list contains a 'button' entry.

Environment (where applicable)

  • Operating system: MacOS
  • Browser: Safari
  • Browser version: Version 18.6 (20621.3.11.11.3)
  • GOV.UK Frontend Version: 5.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibility concernBug, feature request or question about the accessibility of a portion of a product (not a WCAG fail)headerservice navigation🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions