-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tile + TileGroup Accessibility #4606
base: master
Are you sure you want to change the base?
Conversation
Deploying orbit with Cloudflare Pages
|
Storybook staging is available at https://kiwicom-orbit-dsil-tile-accessibility.surge.sh Playroom staging is available at https://kiwicom-orbit-dsil-tile-accessibility.surge.sh/playroom |
Size Change: +1 B (0%) Total Size: 459 kB
ℹ️ View Unchanged
|
|
||
### Expandable / Clickable | ||
|
||
The prop `expandable` makes the Tile clickable. In that case, assistive props like `ariaExpanded` are handled automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would maybe use aria-expanded
here as that's the name and it's not a custom one, wdyt?
|
||
The `htmlTitle` prop can be used to add extra information to the Tile. | ||
|
||
It will be added as the `title` attribute to the root element (the `div` with `role="button"`) when the `expandable` is truthy or `onClick` is defined, or to the `a` element when the `href` prop is defined. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be added as the
title
attribute to the root element (thediv
withrole="button"
) when theexpandable
is truthy
Is this correct? When the expandable
is truthy, we render TileExpandable
which then passes htmlTitle
to TileWrapper
but then inside the TileWrapper
, title
with htmlTitle
is set only on the a
element, not also on WrapperComponent
. Or maybe I am looking at the wrong place 🙈
Heading level inside Tile is no longer enforced.
Accessibility documentation for the Tile and TileGroup components added.
Fixed some accessibility issues in Tile and TileGroup stories.
Fixed the cursor on the Slide component (used in Tile).
FEPLT-2232
✨
Description by Callstackai
This PR enhances accessibility for the Tile and TileGroup components, adds documentation, and fixes cursor issues in the Slide component.
Diagrams of code changes
Files Changed
This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.mdx
. See list of supported languages.