Closed vvalentin-lucca closed 2 months ago
:woman_cook: https://lucca-front.lucca.tech/PR-2838/storybook
I find this change somewhat weird because
<a>Daniel Hernandez</a>
or <a>CP 2023 / 2024</a>
I think that for it to realy works, we should embed the content of every column into a link and find a way to provide some context to screen reader, like "show details", while also preventing redundancy and tab hell.
@BertrandPodevin I agree with you.
We think it's a better solution than the completely hidden version of the link, but it's still not perfect. We thought of putting several links in each column, with a tabindex="-1"
and a role="presentation"
, but it makes the code very heavy.
Maybe a role="link"
directly on the tr
+ some javascript magic could do the trick ?
https://developer.mozilla.org/fr/docs/Web/Accessibility/ARIA/Roles/link_role
No, it overwrites the row
role of the tr
and the table row disappears from the restitution.
Even though lines are supposed to be clickable since we are on Index Tables, some are not yet implemented with a link and moving to a cursor: auto
can actually reduce the feeling of being deceived by the interface, cursor: pointer
being forced at the moment.
Would changing the pointer to only the parts that are really clickable help for discovery?
Clicking anywhere on the row could still open as expected by us, but the UI feedback would actually reflect the semantic of the elements being hovered.
:woman_cook: https://lucca-front.lucca.tech/PR-2838/storybook
:woman_cook: https://lucca-front.lucca.tech/PR-2838/storybook
:woman_cook: https://lucca-front.lucca.tech/PR-2838/storybook
Maybe add a mod-allowTextSelection
that disable the whole thing ?
:woman_cook: https://lucca-front.lucca.tech/PR-2838/storybook
Description
Users have expressed the need to be able to open links in tables to new tabs (via the right-click menu, for example). To do this, these links must not be hidden and must be visible in the interface.
.indexTable-body-row-cell-action
is therefore deprecated and replaced by.indexTable-body-row-cell-link
, which is its unmasked equivalent, and following @BertrandPodevin's idea, we extend this link so that it can be operated on the whole line, without requiring anoverflow: hidden
,z-index
, or superimposing itself on other interactive elements.