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:
@@ -16,6 +16,7 @@ export function CodeWindow(props: CodeWindowProps) {
|
|||||||
<div class="flex items-stretch justify-start">
|
<div class="flex items-stretch justify-start">
|
||||||
<div class="p-4 flex items-center">
|
<div class="p-4 flex items-center">
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
width="41"
|
width="41"
|
||||||
height="10"
|
height="10"
|
||||||
viewBox="0 0 41 10"
|
viewBox="0 0 41 10"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export function ExampleArrow(
|
|||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
viewBox="0 0 137 291"
|
viewBox="0 0 137 291"
|
||||||
|
|||||||
@@ -31,12 +31,9 @@ export function FormsSection() {
|
|||||||
<PageSection id="forms-section">
|
<PageSection id="forms-section">
|
||||||
<SideBySide mdColSplit="2/3" lgColSplit="2/3" class="!items-start">
|
<SideBySide mdColSplit="2/3" lgColSplit="2/3" class="!items-start">
|
||||||
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
||||||
<div
|
<div class="leading-none text-[4rem]">
|
||||||
role="img"
|
|
||||||
alt="Arrows routing and crossing each other emoji"
|
|
||||||
class="leading-none text-[4rem]"
|
|
||||||
>
|
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="icon icon-tabler icon-tabler-route-square-2 text-fresh"
|
class="icon icon-tabler icon-tabler-route-square-2 text-fresh"
|
||||||
width="4rem"
|
width="4rem"
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export function IslandsSection() {
|
|||||||
>
|
>
|
||||||
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="icon icon-tabler icon-tabler-beach text-fresh"
|
class="icon icon-tabler icon-tabler-beach text-fresh"
|
||||||
width="4rem"
|
width="4rem"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export function PartialsSection() {
|
|||||||
>
|
>
|
||||||
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
||||||
<svg
|
<svg
|
||||||
role="img"
|
aria-hidden="true"
|
||||||
alt="Arrows transferring data down "
|
alt="Arrows transferring data down "
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="icon icon-tabler icon-tabler-arrows-transfer-down text-fresh"
|
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">
|
<SideBySide mdColSplit="2/3" lgColSplit="2/3" class="!items-start">
|
||||||
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="icon icon-tabler icon-tabler-atom text-fresh"
|
class="icon icon-tabler icon-tabler-atom text-fresh"
|
||||||
width="4rem"
|
width="4rem"
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ function LemonBottom() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100px"
|
height="100px"
|
||||||
viewBox="0 0 100 100"
|
viewBox="0 0 100 100"
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ function LemonTop() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<svg
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
width="150"
|
width="150"
|
||||||
height="500"
|
height="500"
|
||||||
viewBox="0 0 100 300"
|
viewBox="0 0 100 300"
|
||||||
|
|||||||
Reference in New Issue
Block a user