Skip to content

Banner and main landmarks are nested inside the application landmark #19139

Closed

Description

@gtritchie

axe (best-practice rules) reports two moderate issues on the main IDE window:

  • landmark-main-is-top-level: the main landmark should not be contained in another landmark
  • landmark-banner-is-top-level: the banner landmark should not be contained in another landmark

The same happens for landmark-contentinfo-is-top-level when the warning bar is showing.

The whole UI is wrapped in div#rstudio_container, which has role="application" (Application.java). axe treats application as a landmark, so the banner (<header> logo), main (the pane area, "Workbench"), and contentinfo (warning bar) landmarks are all nested inside it.

The page-wide application role was made unconditional in #6863 to keep NVDA/JAWS in focus mode, and these warnings were accepted at the time. The proposed fix moves role="application" inside the main landmark so that it covers just the pane area. The banner, navigation (menubar/toolbar), and contentinfo landmarks then sit at the top level.

Needs manual screen-reader verification (NVDA/JAWS): the menubar, toolbar and warning bar are no longer inside the application region, so RStudio keyboard shortcuts pressed while focus is on the toolbar should still reach RStudio.

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions