-
Notifications
You must be signed in to change notification settings - Fork 152
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
NavigationBar/Popover a11y enhancements #4540
Merged
Merged
Conversation
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
Storybook staging is available at https://kiwicom-orbit-sarka-a11y-navigationbar.surge.sh |
sarkaaa
force-pushed
the
sarka/a11y-navigationbar
branch
from
December 3, 2024 15:44
a184491
to
cab4e20
Compare
Deploying orbit with Cloudflare Pages
|
Size Change: -25 B (-0.01%) Total Size: 460 kB
ℹ️ View Unchanged
|
sarkaaa
force-pushed
the
sarka/a11y-navigationbar
branch
4 times, most recently
from
December 6, 2024 11:09
8d6dbb4
to
d7f4f50
Compare
sarkaaa
changed the title
Sarka/a11y navigationbar
NavigationBar/Popover a11y enhancements
Dec 12, 2024
DSil
reviewed
Dec 12, 2024
packages/orbit-components/src/NavigationBar/NavigationBar.stories.tsx
Outdated
Show resolved
Hide resolved
sarkaaa
force-pushed
the
sarka/a11y-navigationbar
branch
3 times, most recently
from
December 17, 2024 21:37
32dee67
to
0d4835e
Compare
sarkaaa
force-pushed
the
sarka/a11y-navigationbar
branch
2 times, most recently
from
December 17, 2024 22:49
5f87610
to
da0c92b
Compare
DSil
approved these changes
Dec 18, 2024
This commit adds ariaLabel and ariaLabelledby props to enhance the component's accessibility. It also updates the tabIndex value to make the Popover element focusable and readable by screen readers.
sarkaaa
force-pushed
the
sarka/a11y-navigationbar
branch
from
December 18, 2024 10:06
da0c92b
to
5f89526
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Based on the a11y, some of the violations are caused by incorrect implementation of Nitro component(s) (Navbar). These components import Orbit components.
EDIT: I've also changed the
tabIndex
value for Popover component to make it accessible.Closes https://kiwicom.atlassian.net/browse/FEPLT-2170
✨
Description by Callstackai
This PR enhances accessibility for the NavigationBar and Popover components by adding
ariaLabel
andariaLabelledby
props, improving screen reader support.Diagrams of code changes
Files Changed
ariaLabel
prop to the NavigationBar example.ariaLabel
andariaLabelledby
props to the Popover example.aria-label
for accessibility.ariaLabel
prop in the NavigationBar README.ariaLabel
prop in the NavigationBar component.ariaLabel
prop to the NavigationBar props interface.ariaLabel
andariaLabelledby
props to Popover stories.ariaLabel
andariaLabelledby
props in the Popover README.ariaLabel
andariaLabelledby
props to the Popover content wrapper.ariaLabel
andariaLabelledby
props in the Popover component.ariaLabel
andariaLabelledby
props to the Popover props interface.This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.md
. See list of supported languages.