GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Accessibility Error: aria-hidden="true" conflict with focused descendant on <button> element. · Issue #9865 · pgadmin-org/pgadmin4

Accessibility Error: aria-hidden="true" conflict with focused descendant on <button> element. #9865

New issue
Copy link
New issue
Copy link
Closed
Closed
Accessibility Error: aria-hidden="true" conflict with focused descendant on <button> element.#9865
Copy link
Labels
Bug

Description

@faharabbas-bug-hunter
faharabbas-bug-hunter
opened on Apr 21, 2026
Issue body actions

Description
A critical accessibility error is triggered in the browser console when interacting with the "Reset Statistics" confirmation dialog. The application’s root element (#root) is being marked with aria-hidden="true", while a descendant element—specifically a Material UI styled button—retains or receives focus.
This violates WAI-ARIA standards because assistive technologies are told to ignore the entire tree, yet the user's focus is trapped within it.


Error Log
Blocked aria-hidden on an element because its descendant retained focus.
The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor.
• Focused Element: button.MuiButtonBase-root (Primary Action Button)
• Ancestor with aria-hidden: div#root


Steps to Reproduce

  1. Open the pgAdmin4 dashboard and navigate to a PostgreSQL database.
  2. Execute the following SQL script to create a table with a specific payload in the name:
    SQL
    CREATE TABLE public."<a href=""javascript:alert(1)"">Firefox" ();
    ALTER TABLE public."<a href=""javascript:alert(1)"">Firefox" OWNER to postgres;
  3. Navigate to the newly created table in the Browser tree.
  4. Click on the Reset Statistics button in the dashboard or properties view.
  5. Observe the "Are you sure..." confirmation dialog.
  6. Inspect the browser console to see the ARIA accessibility warning.

Expected Behavior
When a modal or dialog appears, the background content (#root) should be handled such that focus is properly managed without suppressing the active dialog's accessibility tree. Ideally, the inert attribute should be used, or aria-hidden should only be applied to siblings of the modal, not ancestors of the focused element.
Environment
• Application: pgAdmin4
• UI Framework: Material UI (MUI)
• Context: Reset Statistics Confirmation Dialog


Suggested Fix
As per the W3C specification mentioned in the error:
• Avoid applying aria-hidden="true" to the #root container if the dialog is rendered as a child of that container.
• Consider using the inert attribute on the background content to prevent both focus and visibility issues simultaneously.

Image

Activity

  1. faharabbas-bug-hunter
    added
    Bug
    on Apr 21, 2026
  2. faharabbas-bug-hunter commented on Apr 21, 2026

    @faharabbas-bug-hunter
    faharabbas-bug-hunter
    on Apr 21, 2026
    Author
    More actions

    Tested Environment:
    Windows 11
    Release version of PostgreSQL 18.3-2 from www.enterprisedb.com website

  3. asheshv
    added a commit that references this issue on Apr 23, 2026

    fix: prevent XSS via innerHTML in browser tree and explain visualizer (…

    3294e74
  4. asheshv
    added a commit that references this issue on May 6, 2026

    docs: assign CVE IDs to v9.15 release-notes placeholders

    ba9ff51
  5. dpage
    added 3 commits that reference this issue on Oct 15, 2026

    Fix modal dialogs being hidden from assistive technology by aria-hidd…

    3a10959

    Fix modal dialogs being hidden from assistive technology by aria-hidd…

    3a9cec3

    Fix modal dialogs being hidden from assistive technology by aria-hidd…

    f73b51f
  6. dpage commented on Oct 15, 2026

    @dpage
    dpage
    on Oct 15, 2026
    Contributor
    More actions

    Fixed in f73b51f (#10587).

  7. dpage
    closed this as completedon Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.