Skip to content

Commit a743f88

Browse files
committed
svgs with title
1 parent e392ebd commit a743f88

File tree

7 files changed

+26
-61
lines changed

7 files changed

+26
-61
lines changed

src/lib/Glances.svelte

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@
1313
<div class="glances">
1414
<Glance heading="Utrulling" --color="#FF9100">
1515
<div slot="icon">
16-
<RocketIcon />
16+
<RocketIcon aria-hidden />
1717
</div>
1818
<p slot="text">Nais tar ideene dine raskt fra kode til produksjon, uten nedetid.</p>
1919
</Glance>
2020
<Glance heading="Automatisering" --color="#634689">
2121
<div slot="icon">
22-
<CogRotationIcon />
22+
<CogRotationIcon aria-hidden />
2323
</div>
2424
<p slot="text">Du sier hva du trenger, så setter Nais opp infrastrukturen automatisk.</p>
2525
</Glance>
2626
<Glance heading="Full oversikt" --color="#3380A5">
2727
<div slot="icon">
28-
<BulletListIcon />
28+
<BulletListIcon aria-hidden />
2929
</div>
3030
<p slot="text">
3131
Ha kontroll på det du har kjørende, hva det koster og hvor godt du utnytter det.
3232
</p>
3333
</Glance>
3434
<Glance heading="Innsikt" --color="#939E00">
3535
<div slot="icon">
36-
<VitalsIcon />
36+
<VitalsIcon aria-hidden />
3737
</div>
3838
<p slot="text">Verktøyene du trenger for å få innsikt i hvordan systemene dine oppfører seg.</p>
3939
</Glance>
4040
<Glance heading="Sikkerhet" --color="#06893A">
4141
<div slot="icon">
42-
<SealCheckmarkIcon />
42+
<SealCheckmarkIcon aria-hidden />
4343
</div>
4444
<p slot="text">
4545
Nais kommer med solide standardinnstillinger ut av boksen, og gir deg det du trenger for å
@@ -48,7 +48,7 @@
4848
</Glance>
4949
<Glance heading="Et Nais fellesskap" --color="#DE2E2E">
5050
<div slot="icon">
51-
<HandShakeHeartIcon />
51+
<HandShakeHeartIcon aria-hidden />
5252
</div>
5353
<p slot="text">Vi er mange som bruker og utvikler Nais, og vi hjelper hverandre.</p>
5454
</Glance>

src/lib/Header.svelte

+15-8
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
height="1em"
2020
fill="none"
2121
viewBox="0 0 24 24"
22-
focusable="false"
23-
role="img">
24-
<title>Åpne meny</title>
22+
role="img"
23+
aria-labelledby="open-icon-title">
24+
<title id="open-icon-title">Åpne meny</title>
2525
<path
2626
fill="currentColor"
2727
fill-rule="evenodd"
@@ -36,9 +36,9 @@
3636
height="1em"
3737
fill="none"
3838
viewBox="0 0 24 24"
39-
focusable="false"
40-
role="img">
41-
<title>Lukk meny</title>
39+
role="img"
40+
aria-labelledby="close-icon-title">
41+
<title id="close-icon-title">Lukk meny</title>
4242
<path
4343
fill="currentColor"
4444
d="M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z">
@@ -52,8 +52,15 @@
5252
<li><a class="main-menu-item" class:isActive={isActive("log")} href="/log">Logg</a></li>
5353
<li><a class="main-menu-item" href="mailto:[email protected]">Kontakt oss</a></li>
5454
</ul>
55-
<a class="github-link" href="https://github.com/nais" aria-label="Nais på Github">
56-
<svg width="1em" height="1em" viewBox="0 0 98 98" xmlns="http://www.w3.org/2000/svg">
55+
<a class="github-link" href="https://github.com/nais">
56+
<svg
57+
width="1em"
58+
height="1em"
59+
viewBox="0 0 98 98"
60+
xmlns="http://www.w3.org/2000/svg"
61+
aria-labelledby="github-icon-title"
62+
role="img">
63+
<title id="github-icon-title">Nais på Github</title>
5764
<path
5865
fill-rule="evenodd"
5966
clip-rule="evenodd"

src/lib/icons/Navlogo.svelte

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
xmlns="http://www.w3.org/2000/svg"
55
fill="none"
66
viewBox="0 0 64 20"
7-
focusable="false"
87
role="img"
9-
aria-labelledby="logo-svg-title"
8+
aria-labelledby="nav-logo-svg-title"
109
style="display: inline">
11-
<title id="logo-svg-title">Nav</title>
10+
<title id="nav-logo-svg-title">Nav</title>
1211
<path
1312
fill-rule="evenodd"
1413
clip-rule="evenodd"

src/lib/icons/Ssblogo.svelte

-31
This file was deleted.

src/lib/icons/SsblogoFull.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
height="0.9em"
55
viewBox="0 0 499.43 91.43"
66
fill="currentColor"
7+
role="img"
8+
aria-labelledby="ssb-logo-title"
79
{...$$restProps}>
8-
<title>Statistisk sentralbyrå</title>
10+
<title id="ssb-logo-title">Statistisk sentralbyrå</title>
911
<path
1012
d="M117.76,36.13l3.22-4a9.19,9.19,0,0,0,6.78,3.41c2.61,0,3.91-1.19,3.91-2.88,0-2-1.45-2.72-4.75-3.83-4.1-1.46-8.21-3.37-8.21-8.51,0-4.37,3.84-7.71,8.75-7.78A13.87,13.87,0,0,1,136.62,16l-3.11,4.06c-2.26-1.88-4.25-2.68-5.94-2.68-1.88,0-3.26,1-3.26,2.72s1.46,2.41,4.57,3.64c4.71,1.84,8.43,3.07,8.43,8.32,0,5.94-5.18,8.36-9.62,8.36A13.58,13.58,0,0,1,117.76,36.13Z" />
1113
<path

src/routes/(pages)/blog/posts/adventskalender-2024/sting.svg

-11
This file was deleted.

static/github-mark.svg

-1
This file was deleted.

0 commit comments

Comments
 (0)