-
Notifications
You must be signed in to change notification settings - Fork 11
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
129 a11y communicate activeselected state of navigationselection elements #166
Closed
trm217
wants to merge
11
commits into
main
from
129-a11y-communicate-activeselected-state-of-navigationselection-elements
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
96c272e
feat(www/navigation): make active-navigation state accessible (Befund…
trm217 2bbcd31
Merge branch 'fix-check-radio-a11y' into 129-a11y-communicate-actives…
trm217 1680da2
Merge branch 'main' into 129-a11y-communicate-activeselected-state-of…
trm217 d17ba41
refactor(styleguide/tabs): refactor Scroller to render items inside a…
trm217 fea84b2
fix(www/discussion): render loader around comments instead of entire …
trm217 3732d5f
Merge branch 'main' into 129-a11y-communicate-activeselected-state-of…
trm217 ca038d6
feat(www): add visually hidden text to indicate selected payment-method
trm217 fdafc25
feat(styleguide): add sr-texts to TabButton and FormatTag
trm217 2e124cd
feat(www/discussion): add sr-text to selected filter and orderby item
trm217 d8ac22e
feat(styleguide): update translation
trm217 91d336e
Merge branch 'main' into 129-a11y-communicate-activeselected-state-of…
trm217 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 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 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 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 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 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 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,16 @@ | ||
import { css } from 'glamor' | ||
|
||
export const AccessibilityStyles = { | ||
// Source: https://tailwindcss.com/docs/screen-readers | ||
srOnly: css({ | ||
position: 'absolute', | ||
width: 1, | ||
height: 1, | ||
padding: 0, | ||
margin: -1, | ||
overflow: 'hidden', | ||
clip: 'rect(0, 0, 0, 0)', | ||
whiteSpace: 'nowrap', | ||
borderWidth: 0, | ||
}), | ||
} |
This file contains 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 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 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.
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.
Changes in the Scroller don't seem related to acessibility. I don't have time to check these now. Has this been tested? Seems to me that it would change layout behavior.
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.
You're right, that wasn't an issue mentioned in the issue. However this changes were made to make the tab buttons to be easier accessbile by wrapping them in a list as well as passing certain a11y-attributes. It shouldn't change the functionality, but if you could test it as well that'd be cool.