Possibility of specify different aria-label for Cards #5529
Labels
comp: clay-components
Issues related to Clay components. (e.g ClayCard, ClayLabel...)
rfc
Similar to the RFC that are used in React.js, Ember.js, Gatsby.js and Rust, but to mark problems tha
Milestone
Context
Hi guys! 😄 This is a follow-up of #5425.
In that issue, I asked for the possibility of adding an
aria-label
for all Cards component. As far as I could see, the fix has been adding asaria-label
the same value we have fortitle
. I think that in some cases, we need to add a different value for thearia-label
, for example if we want to add extra info that thetitle
does not have.What is your proposal?
For that reason, I think it would be ideal to be able to specify the
aria-label
as a prop, something liketitleAriaLabel
, so we can give it a different value.Example
I'm giving our case as example. For this card, the title says "Styles from Theme", but for the
aria-label
we would like to have "Styles from Theme (marked as default)". We could achieve that if thearia-label
itself was a prop for Card components, as I suggested.Please let me know your thoughts, thanks!
The text was updated successfully, but these errors were encountered: