-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6434fe
commit 154644c
Showing
4 changed files
with
39 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@rhds/elements": minor | ||
--- | ||
`<rh-skip-link>`: added optional `href` attribute: | ||
|
||
```html | ||
<rh-skip-link href="#main-content">Skip to main content</rh-skip-link> | ||
``` | ||
|
||
is equivalent to: | ||
|
||
```html | ||
<rh-skip-link> | ||
<a href="#main-content">Skip to main content</a> | ||
</rh-skip-link> | ||
``` | ||
|
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,8 @@ | ||
<rh-skip-link href="#main-content">Skip to main content</rh-skip-link> | ||
|
||
<h1>Skip link</h1> | ||
<p>To show the skip link, click the white background and press your tab key.</p> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-skip-link/rh-skip-link.js'; | ||
</script> |
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