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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
blackand from the theme object looks like this:<IconButton>changes to using Icon names as props instead of using the unicode icon. Also, a requiredaria-labelprop 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,childrenis used instead of label prop:<Radio>that useschildreninstead of label prop:aria-labelis required for<SearchInput>and<TextInput>for accessibility, as they are missing regular labels.scopeprop is introduced for<Th>, to define the cells that the header element relates to, for accessibility:<Table> <Thead> <Tr> - <Th>Country</Th> - <Th>Capital</Th> + <Th scope="col">Country</Th> + <Th scope="col">Capital</Th> </Tr> </Thead> <Tbody> <Tr> - <Th>Sweden</Th> + <Th scope="row">Sweden</Th> <Td>Stockholm</Td> </Tr> <Tr> - <Th>Germany</Th> + <Th scope="row">Germany</Th> <Td>Berlin</Td> </Tr> </Tbody> </Table>aria-labelis introduced forDefaultDropdownSelectsince it is missing a regular label, for accessibility:Beta Was this translation helpful? Give feedback.
All reactions