Consistent prop name for text labels across components #183
Labels
category: library
Shared code library
TODO: needs decisions
Further discussion and planning necessary
type: task
Something that needs to be done
Milestone
Desired behavior
We use a consistent prop name – probably
text
– for anywhere a component has a String-type prop for some sort of label text. If the component has multiple string props, they should be variations: for example theKRadioButton
might have bothtext
anddescriptionText
.Current behavior
We currently have a wide range of inconsistent prop names across the library, e.g.
text
label
tooltip
andariaLabel
(icon button accepts both a tooltip and an aria label #168)The Value Add
This will help engineers learn the KDS API more easily be permitting knowledge transfer between components
Possible Tradeoffs
API breakage will require a major version bump and changes to Kolibri and Studio
The text was updated successfully, but these errors were encountered: