-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix(internet-header): Trap focus is not working on overlays and missing in search overlay #2922
Changes from 11 commits
981c509
0ea03e2
94d36d9
1da6840
5d431cd
dc5644e
887d774
a968254
089ce80
9461044
75bb5a1
209c6de
cdec39d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/internet-header': patch | ||
--- | ||
|
||
Fixed focus trap on overlay of the breadcrumb. | ||
Added a focus trap on search overlay |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
"loader/" | ||
], | ||
"scripts": { | ||
"dev": "stencil build --serve --port 9310 --watch --docs-readme", | ||
"dev": "stencil build --serve --port 9310 --watch --docs-readme --dev", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This make it easier to use the browser debugger |
||
"start": "stencil build --watch --docs-readme", | ||
"build": "stencil build --docs-readme", | ||
"clean": "rimraf www dist loader", | ||
|
@@ -46,7 +46,6 @@ | |
"body-scroll-lock": "4.0.0-beta.0", | ||
"iframe-resizer": "4.3.9", | ||
"jquery": "3.7.1", | ||
"tabbable": "6.2.0", | ||
"throttle-debounce": "5.0.0", | ||
"url-polyfill": "1.1.12" | ||
}, | ||
|
@@ -70,6 +69,7 @@ | |
"cypress-each": "1.14.0", | ||
"cypress-storybook": "0.5.1", | ||
"eslint-plugin-react": "7.34.1", | ||
"focus-trap": "7.5.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. focus-trap is from the same creator as tabbable and uses it inside |
||
"globby": "14.0.1", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,6 @@ | |
position: relative; | ||
background: white; | ||
box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); | ||
visibility: hidden; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes the overlay not tabbable, I didn't see any differences without it. |
||
transform: translateY(3rem); | ||
opacity: 0; | ||
transition: transform 500ms, opacity 500ms; | ||
|
@@ -223,10 +222,10 @@ iframe { | |
height: 100%; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.loaded ~ & { | ||
display: none; | ||
} | ||
.loaded .loader-wrapper { | ||
display:none; | ||
} | ||
|
||
.hidden-control-breadcrumbs { | ||
|
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.
A better test would be to check if the element is visible or not