Migrate from v3 to v4 #170
filiptammergard
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Breaking changes when migrating from v3 to v4:
<Icon>
name "arrowRightwards" changes name to "arrowRight" and icon name "arrowLeftwards" changes name to "arrowLeft":<VerticalSpacing>
sizes change and prop names are shortened, here's the new API:<VerticalLayout>
:I.e., the diff for using
black
and from the theme object looks like this:<IconButton>
changes to using Icon names as props instead of using the unicode icon. Also, a requiredaria-label
prop is introduced for accessibility:This makes it safe to change the unicode value without breaking the icon in the button.
<DefaultCheckbox>
is removed and<LabelCheckbox>
is renamed to<Checkbox>
. Also,children
is used instead of label prop:<Radio>
that useschildren
instead of label prop:aria-label
is required for<SearchInput>
and<TextInput>
for accessibility, as they are missing regular labels.scope
prop is introduced for<Th>
, to define the cells that the header element relates to, for accessibility:aria-label
is introduced forDefaultDropdownSelect
since it is missing a regular label, for accessibility:Beta Was this translation helpful? Give feedback.
All reactions