www: Add aria-hidden to icons and illustrations (#2494)

Added `aria-hidden="true"` to all decorative icons and illustrations.

If there are any questions, suggestions or anything, please let me know
:)

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen
2024-06-05 00:05:59 +02:00
committed by GitHub
parent 0928ecbe11
commit a9b552945a
8 changed files with 9 additions and 6 deletions
+1
View File
@@ -16,6 +16,7 @@ export function CodeWindow(props: CodeWindowProps) {
<div class="flex items-stretch justify-start">
<div class="p-4 flex items-center">
<svg
aria-hidden="true"
width="41"
height="10"
viewBox="0 0 41 10"
+1
View File
@@ -5,6 +5,7 @@ export function ExampleArrow(
) {
return (
<svg
aria-hidden="true"
width="100%"
height="100%"
viewBox="0 0 137 291"
+2 -5
View File
@@ -31,12 +31,9 @@ export function FormsSection() {
<PageSection id="forms-section">
<SideBySide mdColSplit="2/3" lgColSplit="2/3" class="!items-start">
<div class="flex flex-col gap-4 md:sticky md:top-4">
<div
role="img"
alt="Arrows routing and crossing each other emoji"
class="leading-none text-[4rem]"
>
<div class="leading-none text-[4rem]">
<svg
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-route-square-2 text-fresh"
width="4rem"
@@ -37,6 +37,7 @@ export function IslandsSection() {
>
<div class="flex flex-col gap-4 md:sticky md:top-4">
<svg
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-beach text-fresh"
width="4rem"
+1 -1
View File
@@ -42,7 +42,7 @@ export function PartialsSection() {
>
<div class="flex flex-col gap-4 md:sticky md:top-4">
<svg
role="img"
aria-hidden="true"
alt="Arrows transferring data down "
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-arrows-transfer-down text-fresh"
@@ -19,6 +19,7 @@ export function RenderingSection() {
<SideBySide mdColSplit="2/3" lgColSplit="2/3" class="!items-start">
<div class="flex flex-col gap-4 md:sticky md:top-4">
<svg
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-atom text-fresh"
width="4rem"
+1
View File
@@ -99,6 +99,7 @@ function LemonBottom() {
return (
<svg
aria-hidden="true"
width="100%"
height="100px"
viewBox="0 0 100 100"
+1
View File
@@ -88,6 +88,7 @@ function LemonTop() {
return (
<>
<svg
aria-hidden="true"
width="150"
height="500"
viewBox="0 0 100 300"