-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a11y tests and fixes immediate issues presented
- Loading branch information
1 parent
53ac95c
commit 81be755
Showing
14 changed files
with
494 additions
and
297 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
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
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
54 changes: 29 additions & 25 deletions
54
stories/Components/__snapshots__/SkipLink.stories.tsx.snap
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 |
---|---|---|
@@ -1,32 +1,36 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Components/SkipLink SkipLinkWithDefaultBehaviourDisabled smoke-test 1`] = ` | ||
<div class="nhsuk-hint"> | ||
Press | ||
<span style="font-family: monospace; margin-left: 5px; margin-right: 5px; font-size: 14px; padding: 3px; background-color: rgba(255, 0, 0, 0.15); border-radius: 5px;"> | ||
tab | ||
</span> | ||
to show the SkipLink | ||
</div> | ||
<a class="nhsuk-skip-link" | ||
tabindex="0" | ||
> | ||
Skip to main content | ||
</a> | ||
<main id="maincontent"> | ||
<div class="nhsuk-hint"> | ||
Press | ||
<span style="font-family: monospace; margin-left: 5px; margin-right: 5px; font-size: 14px; padding: 3px; border-radius: 5px;"> | ||
tab | ||
</span> | ||
to show the SkipLink | ||
</div> | ||
<a class="nhsuk-skip-link" | ||
tabindex="0" | ||
> | ||
Skip to main content | ||
</a> | ||
</main> | ||
`; | ||
|
||
exports[`Components/SkipLink Standard smoke-test 1`] = ` | ||
<div class="nhsuk-hint"> | ||
Press | ||
<span style="font-family: monospace; margin-left: 5px; margin-right: 5px; font-size: 14px; padding: 3px; background-color: rgba(255, 0, 0, 0.15); border-radius: 5px;"> | ||
tab | ||
</span> | ||
to show the SkipLink | ||
</div> | ||
<a class="nhsuk-skip-link" | ||
href="#maincontent" | ||
tabindex="0" | ||
> | ||
Skip to main content | ||
</a> | ||
<main id="maincontent"> | ||
<div class="nhsuk-hint"> | ||
Press | ||
<span style="font-family: monospace; margin-left: 5px; margin-right: 5px; font-size: 14px; padding: 3px; border-radius: 5px;"> | ||
tab | ||
</span> | ||
to show the SkipLink | ||
</div> | ||
<a class="nhsuk-skip-link" | ||
href="#maincontent" | ||
tabindex="0" | ||
> | ||
Skip to main content | ||
</a> | ||
</main> | ||
`; |
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.