Clean up main page links
This commit is contained in:
parent
f23b3774d4
commit
aa14b2856a
11 changed files with 193 additions and 66 deletions
|
|
@ -6,11 +6,20 @@ type Props = {
|
|||
class?: string;
|
||||
fill?: string;
|
||||
children: any;
|
||||
"aria-label"?: string;
|
||||
};
|
||||
|
||||
const { width, height, class: className, fill = "currentColor", viewBox } = Astro.props;
|
||||
const { width, height, class: className, fill = "currentColor", viewBox, "aria-label": ariaLabel } = Astro.props;
|
||||
---
|
||||
|
||||
<svg style={{ width, height, fill }} class={className} viewBox={viewBox} aria-hidden="true">
|
||||
<svg
|
||||
style={{ width, height, fill }}
|
||||
class={className}
|
||||
viewBox={viewBox}
|
||||
aria-hidden={ariaLabel ? undefined : "true"}
|
||||
role={ariaLabel ? "img" : undefined}
|
||||
aria-label={ariaLabel}
|
||||
focusable="false"
|
||||
>
|
||||
<slot />
|
||||
</svg>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue