Migrate from v2 to v3 #159
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 in v3 are mainly API changes where composition is used instead of props.
Select
<DefaultDropdownSelect>
and<LabelDropdownSelect>
takes children instead of anoption
prop.The benefit from having full control over what and how to render the options out-weights the extra code needed.
Table
<Table>
is renamed to<ComposedTable>
and a new<Table>
is added, where the parts of the table are composed manually.For simple tables,
<ComposedTable>
might be convenient. But in many cases, logic for row/column click is needed, which is way simpler to get right when you have control of the composition yourself.Misc
<Caption>
is now rendering a plain<p>
instead of a<small>
inside a<p>
.fullWidth
prop is changed toisFullWidth
wherever it exists.min-width
on buttons is changed from240px
to120px
.font-weight
for the heading components were 700, although the actual font weight was 450. This is fixed by publishing a new version on einride/fonts with corrected font weights, and updated font weight settings in the heading components in einride/ui. In other words, the font import path should be updated when upgrading to v3:Beta Was this translation helpful? Give feedback.
All reactions