-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add SkipLink component and integrate with navigation components #2780
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 9b19c58 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2780 +/- ##
==========================================
- Coverage 87.28% 87.28% -0.01%
==========================================
Files 214 215 +1
Lines 12617 12640 +23
Branches 1691 1694 +3
==========================================
+ Hits 11013 11033 +20
- Misses 1551 1554 +3
Partials 53 53
|
Size Change: +452 B (+0.07%) Total Size: 640 kB
ℹ️ View Unchanged
|
c3a6805
to
0575d3a
Compare
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 was skeptical about integrating the skip link directly into the navigation components, but now I see that this adds very little code and ensures that the skip link is positioned properly. Nice!
I left suggestions to improve the styling and restructure the docs to match the other components.
packages/circuit-ui/components/TopNavigation/TopNavigation.spec.tsx
Outdated
Show resolved
Hide resolved
packages/circuit-ui/components/SideNavigation/SideNavigation.spec.tsx
Outdated
Show resolved
Hide resolved
packages/circuit-ui/components/SideNavigation/SideNavigation.spec.tsx
Outdated
Show resolved
Hide resolved
…d SideNavigation components.
eb3b842
to
9101cb3
Compare
@@ -111,6 +111,8 @@ export const baseArgs: TopNavigationProps = { | |||
onClick: action('Shop'), | |||
}, | |||
], | |||
skipNavigationHref: '#main-content', |
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 element doesn't exist, does it?
packages/circuit-ui/components/SideNavigation/SideNavigation.stories.tsx
Show resolved
Hide resolved
445ebcd
to
18000cb
Compare
18000cb
to
9b19c58
Compare
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.
Nice!
Addresses DSYS-444
Purpose
Make a skip link component available to bypass blocks for screen reader and keyboard users
Approach and changes
Definition of done