Skip to content

Commit 483d02b

Browse files
fix: small wave compliancy issues on landing page
1 parent 1c2b2d5 commit 483d02b

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

core/src/components/Footer.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ import logoWHite from '@nixos/branding/artifacts/internal/nixos-logomark-white-f
115115
id="scroll-to-top"
116116
class="bg-secondary-afghani-blue-25 hover:bg-secondary-afghani-blue-45 text-primary-white absolute right-4 bottom-4 z-50 rounded-xl drop-shadow-md transition-all duration-100 md:-right-14 md:bottom-8"
117117
>
118+
<span class="sr-only">Scroll to top</span>
118119
<Icon class="h-14 w-14 p-1" name="mdi:keyboard-arrow-up" />
119120
</a>
120121
</Container>

core/src/components/Header.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const navbarItemActiveStyle = `border-b-secondary-afghani-blue-85 bg-secondary-a
7979
{
8080
headerMenu.data.items.map((item) => (
8181
<Link
82+
role="menuitem"
8283
class:list={[
8384
'pt-7 pb-6',
8485
navbarItemStyle,

core/src/components/ui/Input.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ interface Props {
77
icon?: 'search' | null;
88
placeholder?: string;
99
name?: string;
10+
title?: string;
1011
}
1112
1213
const {
@@ -15,10 +16,12 @@ const {
1516
icon = null,
1617
placeholder = '',
1718
name = null,
19+
title,
1820
} = Astro.props;
1921
---
2022

21-
<div class="relative">
23+
<label class="relative block">
24+
<span class="sr-only">{title}</span>
2225
<Icon
2326
alt="Search"
2427
class:list={[
@@ -34,6 +37,7 @@ const {
3437
/>
3538
<input
3639
type="text"
40+
title={title}
3741
class="focus:border-secondary-afghani-blue-75 focus:outline-secondary-afghani-blue-95 border-primary-black-85 outline-2 outline-transparent"
3842
class:list={[
3943
'text-normal rounded-full',
@@ -49,4 +53,4 @@ const {
4953
name={name}
5054
placeholder={placeholder}
5155
/>
52-
</div>
56+
</label>

core/src/components/ui/NixosSearchInput.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const {
3636
<Input
3737
color={color}
3838
size={size}
39+
title="Search NixOS Packages and Options"
3940
placeholder={`Search for ${collectionMap[collection]}`}
4041
name="query"
4142
/>

0 commit comments

Comments
 (0)