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:
@@ -1,6 +1,7 @@
|
||||
import { iconVariants } from '../../variants'
|
||||
|
||||
import type { IconProps } from '../../icon'
|
||||
import { getIconAriaProps } from '../../utils'
|
||||
|
||||
export default function DiamondAddIcon({
|
||||
className,
|
||||
@@ -9,6 +10,8 @@ export default function DiamondAddIcon({
|
||||
...props
|
||||
}: IconProps) {
|
||||
const classNames = iconVariants({ className, color })
|
||||
const ariaProps = getIconAriaProps(props)
|
||||
|
||||
return (
|
||||
<svg
|
||||
className={classNames}
|
||||
@@ -18,6 +21,7 @@ export default function DiamondAddIcon({
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
{...props}
|
||||
{...ariaProps}
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
|
||||
Reference in New Issue
Block a user