-
Notifications
You must be signed in to change notification settings - Fork 51
Upgrade ember-a11y-refocus
to v5.1.0
#3234
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4efb0ee
chore: upgrade ember-a11y-refocus to v5
088b400
fix: import navigation narrator styles
4877f5f
fix: lint error
a1587af
fix: rollup config for new styles
f13a1f0
fix: lint errors
f47af8e
chore: upgrade glimmer/component for types to work properly
f31ea60
chore: typo
c2271d8
fix: changesets
2f4d3f2
fix: mostly right now
49b9906
fix website kinda
1613523
fix: set glimmer-component@v2 as global override
aklkv d770190
fix: changeset again
2b3d6bc
fix: lint errors
427393b
chore: move styles into their own file
4432b50
fix: changelog entry
shleewhite f363c1e
fix: rebase issue
2621b9b
chore: lint
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@hashicorp/design-system-components": patch | ||
--- | ||
|
||
<!-- START components/side-nav --> | ||
`SideNav` - Fixed the type of `@a11yRefocusRouteChangeValidator` to match the expected type from `ember-a11y-refocus`. The new type is `(transition: Transition) => boolean` instead of `string`. | ||
<!-- END --> | ||
|
||
<!-- START components/app-header --> | ||
`AppHeader` - Fixed the type of `@a11yRefocusRouteChangeValidator` to match the expected type from `ember-a11y-refocus`. The new type is `(transition: Transition) => boolean` instead of `string`. | ||
<!-- END --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@hashicorp/design-system-components": major | ||
--- | ||
|
||
Upgraded `ember-a11y-refocus` dependency to version `5.0` | ||
Upgraded `@glimmer/component` dependency to version `2.0` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/components/src/styles/@hashicorp/design-system-ember-a11y-refocus.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// NOTE: this is currently required because we cannot import the CSS from ember-a11y-refocus directly without requiring consumers that use scss to add the dependency as well. | ||
|
||
// The styles are taken directly from the ember-a11y-refocus package here: | ||
#ember-a11y-refocus-nav-message { | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
padding: 0; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
border: 0; | ||
clip: rect(0, 0, 0, 0); | ||
} | ||
|
||
.ember-a11y-refocus-skip-link { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
padding: 0.25rem; | ||
color: #fff; | ||
font-size: 0.75rem; | ||
text-decoration: none; | ||
// stylelint-disable-next-line color-function-notation | ||
background-color: rgb(0 0 0 / 75%); | ||
transform: translateY(-100%); | ||
transition: transform 0.3s ease-in-out; | ||
} | ||
|
||
.ember-a11y-refocus-skip-link:focus { | ||
transform: translateY(0); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.