-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2625] Mobile design keeping A11Y header on small screens
- Loading branch information
1 parent
a7ce5c9
commit ac1e40f
Showing
7 changed files
with
94 additions
and
14 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
6 changes: 6 additions & 0 deletions
6
src/open_inwoner/components/templates/components/Header/AccessibilitySkipLink.html
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,6 @@ | ||
{% load i18n link_tags %} | ||
|
||
<p class="utrecht-paragraph"> | ||
{% trans "Doorgaan naar hoofdinhoud" as link_text %} | ||
{% link href="#content" icon="south" text=link_text extra_classes="utrecht-skip-link utrecht-skip-link--visible-on-focus utrecht-skip-link--focus-visible" %} | ||
</p> |
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
46 changes: 46 additions & 0 deletions
46
src/open_inwoner/scss/components/AccessibilitySkipLink/AccessibilitySkipLink.scss
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,46 @@ | ||
.utrecht-skip-link { | ||
background-color: var(--utrecht-skip-link-background-color, #f0f0f0); | ||
color: var(--utrecht-skip-link-color, #000); | ||
min-block-size: var(--utrecht-skip-link-min-block-size, 0); | ||
min-inline-size: var(--utrecht-skip-link-min-inline-size, 0); | ||
padding-block-start: var(--utrecht-skip-link-padding-block-start, 0.5rem); | ||
padding-block-end: var(--utrecht-skip-link-padding-block-end, 0.5rem); | ||
padding-inline-start: var(--utrecht-skip-link-padding-inline-start, 1rem); | ||
padding-inline-end: var(--utrecht-skip-link-padding-inline-end, 1rem); | ||
text-decoration: var(--utrecht-skip-link-text-decoration, underline); | ||
z-index: var(--utrecht-skip-link-z-index, 5000); | ||
|
||
&--visible-on-focus { | ||
inset-block-start: -200%; | ||
position: fixed; | ||
&:focus { | ||
inset-block-start: 0; | ||
background-color: var( | ||
--utrecht-skip-link-focus-background-color, | ||
var(--color-accent) | ||
); | ||
color: var(--utrecht-skip-link-focus-color, #fff); | ||
text-decoration: var( | ||
--utrecht-skip-link-focus-text-decoration, | ||
underline | ||
); | ||
} | ||
} | ||
|
||
&--focus-visible { | ||
inset-block-start: -200%; | ||
position: fixed; | ||
&:focus-visible { | ||
inset-block-start: 0; | ||
background-color: var( | ||
--utrecht-skip-link-focus-visible-background-color, | ||
var(--color-accent) | ||
); | ||
color: var(--utrecht-skip-link-focus-visible-color, #fff); | ||
text-decoration: var( | ||
--utrecht-skip-link-focus-visible-text-decoration, | ||
underline | ||
); | ||
} | ||
} | ||
} |
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