This is a breaking change to the fontCallback method which allows the user to make use of the exact font-weight value of the element rather than just a boolean of whether it is a bold variant.
Font weights of 800 and 900 are now classified as 'bolder' rather than 'bold', so the fontCallback is passed a weight string of type: 'normal' | 'bold' | 'bolder'.
This is a breaking change to the fontCallback method which allows the user to make use of the exact font-weight value of the element rather than just a boolean of whether it is a bold variant.
Font weights of 800 and 900 are now classified as
'bolder'
rather than'bold'
, so the fontCallback is passed aweight
string of type:'normal' | 'bold' | 'bolder'
.