Migrate from v4 to v5 #284
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 v4 to v5:
framer-motion
as a peer dependency. Install it when upgrading to v5:<DefaultDropdownSelect>
to<Select>
and<LabelDropdownSelect>
to<LabelSelect>
:<Label>
is changed to "primary":size
in<VerticalLayout>
togap
. The new name mirrors what the prop does better and it also enables settinggap="none"
, which makes no forsize="none"
:<Logo>
API due to this:<ComposedTable>
is only used in one place throughout the Einride org and it can be replaced with<Table>
which gives a lot more control:breakpoint
object in theme can still be used, but is deprecated and will be removed in the next major release. Currently, the breakpoint object looks like this:These values are actually not breakpoints, but rather full media queries. Instead, we're introducing a
breakpoints
object with actual breakpoints, like this:Additionally, we're adding a
mediaQueries
object, that can be used almost like the deprecatedbreakpoint
object, but without the leading "@media":These updates are a way of making use of media queries more flexible. You can now do queries like this, which was not possible before:
Beta Was this translation helpful? Give feedback.
All reactions