-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PROD-1266 Removes overflow styling for embedded modal in Fides.js #4345
Conversation
5eb30d7
to
12106a6
Compare
Passing run #4850 ↗︎
Details:
Review all test suite changes for PR #4345 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good first step - I'd like to release this as-is but follow-up in a second issue.
@@ -6,21 +6,26 @@ | |||
import A11yDialogLib from "a11y-dialog"; | |||
import { useCallback, useEffect, useState } from "preact/hooks"; | |||
|
|||
const useA11yDialogInstance = () => { | |||
const useA11yDialogInstance = (addOverlowStyling: Boolean) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this as a test fix; but it's really narrow and still leaves behind an a11y-dialog
instance when we aren't actually showing a dialog.
Can you create a new PROD bug and assign to current sprint like "Fix a11y issues with embedded modal" to follow up further here? Because right now it has some issues:
- appears to automatically grab focus on open, which can force a jarring page scroll
- labeled as
role="alertdialog"
andaria-modal="true"
which will likely confuse a screen reader / etc. - basically just feels wrong 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes https://ethyca.atlassian.net/browse/PROD-1266
Description Of Changes
Removes overflow styling for embedded modal in Fides.js
Code Changes
Steps to Confirm
style="overflow-y: hidden;"
is not added to<html>
tagPre-Merge Checklist
CHANGELOG.md