Skip to content

Conversation

@mihkeleidast
Copy link
Contributor

@mihkeleidast mihkeleidast commented Oct 27, 2025

Fixes #3403.

Changes the hidden styles implementation to use very minimal set of styles on the owner element so iOS Voice Control works OK after this change. I think the rest of visually hidden styles should not be needed, as most of it deals with hiding content, which the aria-owns element does not have. But let me know if you find a scenario where this breaks layout or something.

For reference: https://www.tpgi.com/the-anatomy-of-visually-hidden/

I've tested it here with the canary release version: https://codesandbox.io/p/sandbox/brave-snowflake-qc7myq

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2025

🦋 Changeset detected

Latest commit: 02fb7ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@floating-ui/react Patch
website Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for vibrant-gates-22c214 ready!

Name Link
🔨 Latest commit 02fb7ff
🔍 Latest deploy log https://app.netlify.com/projects/vibrant-gates-22c214/deploys/69007cb7afb54e0008c4a840
😎 Deploy Preview https://deploy-preview-3408--vibrant-gates-22c214.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.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 27, 2025

Open in StackBlitz

@floating-ui/core

npm i https://pkg.pr.new/@floating-ui/core@3408

@floating-ui/dom

npm i https://pkg.pr.new/@floating-ui/dom@3408

@floating-ui/react

npm i https://pkg.pr.new/@floating-ui/react@3408

@floating-ui/react-dom

npm i https://pkg.pr.new/@floating-ui/react-dom@3408

@floating-ui/react-native

npm i https://pkg.pr.new/@floating-ui/react-native@3408

@floating-ui/utils

npm i https://pkg.pr.new/@floating-ui/utils@3408

@floating-ui/vue

npm i https://pkg.pr.new/@floating-ui/vue@3408

commit: 02fb7ff

@mihkeleidast mihkeleidast marked this pull request as ready for review October 28, 2025 08:15
@mihkeleidast mihkeleidast changed the title fix(FloatingPortal): fix non-portal accessibility with iOS/Safari/Voice Control fix(FloatingPortal): fix non-modal dialog accessibility with iOS/Safari/Voice Control Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-modal dialog is not accessible with Voice Control on iOS & Safari

1 participant