Skip to content

[popover] Fix missing aria-owns element - #3959

Merged
atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/popover-portal-guards
Feb 4, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/popover-portal-guards

Conversation

@atomiks

@atomiks atomiks commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

This appears to be a mistake from detached triggers refactoring - Menu still preserves this and it's necessary for the aria-owns element for sceen readers.

@atomiks atomiks added type: regression A bug, but worse, it used to behave as expected. component: popover Changes related to the popover component. labels Feb 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented Feb 4, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@3959
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@3959
    

commit: a2c005e

@mui-bot

mui-bot commented Feb 4, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react ▼-16B(0.00%) ▼-14B(-0.01%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Feb 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit a2c005e
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6982f4658882d50008778747
😎 Deploy Preview https://deploy-preview-3959--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks marked this pull request as ready for review February 4, 2026 02:05
@greptile-apps

greptile-apps Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR fixes a regression from the detached triggers refactoring where renderGuards={false} was incorrectly set on PopoverPortal's FloatingPortal component. By removing this prop, the component now uses the default guard rendering behavior, which includes the aria-owns element necessary for screen reader accessibility (particularly on iOS/Safari/VoiceControl).

  • Removes renderGuards={false} from FloatingPortal in PopoverPortal component
  • Aligns PopoverPortal implementation with MenuPortal (which doesn't disable guards)
  • Restores aria-owns element rendering for better accessibility

The change is minimal, focused, and correctly addresses the accessibility issue.

Confidence Score: 5/5

  • This PR is safe to merge with no concerns - it's a simple one-line fix that restores important accessibility functionality
  • The change removes an incorrect prop that was preventing the rendering of accessibility guards. The fix is minimal (one prop removal), well-justified, aligns with the Menu component's implementation, and restores critical aria-owns element for screen readers. No logic changes or side effects beyond the intended accessibility improvement.
  • No files require special attention

Important Files Changed

Filename Overview
packages/react/src/popover/portal/PopoverPortal.tsx Removed renderGuards={false} prop to restore default guard rendering behavior, fixing missing aria-owns element for screen reader accessibility

@atomiks
atomiks merged commit ff6f21a into mui:master Feb 4, 2026
7 checks passed
@atomiks
atomiks deleted the codex/popover-portal-guards branch February 4, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: popover Changes related to the popover component. type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants