diff --git a/src/components/common/Icon.astro b/src/components/common/Icon.astro index 0ed4edb..7a711fc 100644 --- a/src/components/common/Icon.astro +++ b/src/components/common/Icon.astro @@ -1,10 +1,10 @@ --- const { group, name, class: className, color } = Astro.props; -const displayName = name.replaceAll("-", " "); - const styles = color ? `color: ${color}` : null; +const ariaLabel = Astro.props.ariaLabel ?? name.replaceAll("-", " "); + export interface Props { /** The group that the icon belongs to. */ group: "brands" | "solid"; @@ -14,12 +14,13 @@ export interface Props { class?: string; /** The colour of the icon. */ color?: string; + ariaLabel?: string; } --- diff --git a/src/components/layout/Header.astro b/src/components/layout/Header.astro index f41bd7c..df3af7b 100644 --- a/src/components/layout/Header.astro +++ b/src/components/layout/Header.astro @@ -14,13 +14,13 @@ const { class: className } = Astro.props;