Merge remote-tracking branch 'origin/master' into aakansha-baseline

This commit is contained in:
Aakansha Doshi 2023-03-31 16:01:52 +05:30
commit 50ac3bf855
8 changed files with 83 additions and 30 deletions

View file

@ -929,7 +929,7 @@ const DEFAULT_LINE_HEIGHT = {
};
export const getDefaultLineHeight = (fontFamily: FontFamilyValues) => {
if (fontFamily) {
if (fontFamily in DEFAULT_LINE_HEIGHT) {
return DEFAULT_LINE_HEIGHT[fontFamily];
}
return DEFAULT_LINE_HEIGHT[DEFAULT_FONT_FAMILY];