Feat/BOOK-117 svg accessibility

* feat(BOOK-117): Added aria-label to Scandic Friends levels
* feat(BOOK-117): Added aria-label to hotel logos
* feat(BOOK-117): Added alt text to app download images
* feat(BOOK-117): Added same logo component to footer as the one in the header
* feat(BOOK-117): Added aria attributes to icons similar to how we handled MaterialIcon aria attributes

Approved-by: Bianca Widstam
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-11-13 06:34:18 +00:00
parent c4b564998c
commit ce469bc4b4
117 changed files with 541 additions and 247 deletions

View File

@@ -1,4 +1,5 @@
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import { iconVariants } from '../../variants'
export default function BedHotelIcon({
@@ -8,6 +9,8 @@ export default function BedHotelIcon({
...props
}: IconProps) {
const classNames = iconVariants({ className, color })
const ariaProps = getIconAriaProps(props)
return (
<svg
className={classNames}
@@ -17,6 +20,7 @@ export default function BedHotelIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
{...ariaProps}
>
<path
d="M1.9375 22.4618C1.67917 22.4618 1.45833 22.3702 1.275 22.1868C1.09167 22.0035 1 21.7826 1 21.5243V8.79932C1 8.54098 1.09167 8.32015 1.275 8.13682C1.45833 7.95348 1.67917 7.86182 1.9375 7.86182C2.19583 7.86182 2.41667 7.95348 2.6 8.13682C2.78333 8.32015 2.875 8.54098 2.875 8.79932V17.6118H10.825V11.7118C10.825 11.1962 11.0086 10.7548 11.3758 10.3876C11.743 10.0204 12.1844 9.83682 12.7 9.83682H18.65C19.7167 9.83682 20.625 10.2118 21.375 10.9618C22.125 11.7118 22.5 12.6202 22.5 13.6868V21.5243C22.5 21.7826 22.4083 22.0035 22.225 22.1868C22.0417 22.3702 21.8208 22.4618 21.5625 22.4618C21.3042 22.4618 21.0833 22.3702 20.9 22.1868C20.7167 22.0035 20.625 21.7826 20.625 21.5243V19.4868H2.875V21.5243C2.875 21.7826 2.78333 22.0035 2.6 22.1868C2.41667 22.3702 2.19583 22.4618 1.9375 22.4618ZM12.7 17.6118H20.625V13.6844C20.625 13.1443 20.431 12.6806 20.043 12.2931C19.655 11.9056 19.1886 11.7118 18.6438 11.7118H12.7V17.6118Z"