KIconButton: Set tooltip
value as fallback if ariaLabel
is missing
#793
Labels
Component: KIconButton
good first issue
Self-contained, straightforward, low-complexity
help wanted
Open source contributors welcome
P3 - low
Priority: Stretch goal
type: task
Something that needs to be done
🌱 Are you new to the codebase? Welcome! Please see the contributing guidelines.
Product
Kolibri, Studio, etc.
Description
In
KIconButton
we have these two props related but not exactly the same:ariaLabel
andtooltip
. For accessibility purposes we dont want these props to be the same, but if the user forgot to send anariaLabel
prop but they sent atooltip
prop, the ariaLabel should take the value of thetooltip
prop.This means, the aria label of the icon button will be set by the
ariaLabel
prop, and have thetooltip
value as fallback ifariaLabel
is missing.The Value Add
This will improve accessibility in places where we have tooltips but no aria labels. And in the future we can just send the
tooltip
prop if we want theariaLabel
to have the same value.The text was updated successfully, but these errors were encountered: