Release 9.0.0
· En minut att läsa
Migrera från 8.x.x till 9.0.0
Card
I version 8.3.0 introducerade vi ett nytt och mera modulärt API för Card
.
Komponenten som tidigare accepterade samtliga props är numera en kortyta som måste kompletteras med ett urval från komponenterna CardContent
, CardTitle
, CardActions
, CardImage
, CardActionArea
och CardLink
.
För mer information läs hur du använder Card.
Tokens
Strukturen på tokens för lineHeight
och size
under typography
har ändrats.
Importerar du dessa värden behöver du justera din kod enligt:
lineHeight
import { typography } from '@midas-ds/components/theme'
- typography.lineHeight01
+ typography.lineHeight10
- typography.lineHeight02
+ typography.lineHeight20
- typography.lineHeight03
+ typography.lineHeight30
- typography.lineHeight04
+ typography.lineHeight40
- typography.lineHeight05
+ typography.lineHeight50
- typography.lineHeight06
+ typography.lineHeight60
- typography.lineHeight07
+ typography.lineHeight70
- typography.lineHeight08
+ typography.lineHeight80
- typography.lineHeight09
+ typography.lineHeight90
- typography.lineHeight10
+ typography.lineHeight100
size
import { typography } from '@midas-ds/components/theme'
- typography.size01
+ typography.fontSize10
- typography.size02
+ typography.fontSize20
- typography.size03
+ typography.fontSize30
- typography.size04
+ typography.fontSize40
- typography.size05
+ typography.fontSize50
- typography.size06
+ typography.fontSize60
- typography.size07
+ typography.fontSize70
- typography.size08
+ typography.fontSize80
- typography.size09
+ typography.fontSize90
- typography.size10
+ typography.fontSize100
Kolla changelog