@hoddy-ui/core 2.5.46 → 2.5.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/next/dist/index.d.mts +1 -0
- package/next/dist/index.d.ts +1 -0
- package/next/dist/index.js +3 -2
- package/next/dist/index.js.map +1 -1
- package/next/dist/index.mjs +18 -17
- package/next/dist/index.mjs.map +1 -1
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/src/Components/Typography.tsx +1 -1
package/next/package.json
CHANGED
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ const Typography: React.FC<TypographyProps> = forwardRef(
|
|
|
45
45
|
// Get font size: prop > config > default, then apply ms() scaling
|
|
46
46
|
const baseFontSize =
|
|
47
47
|
customFontSizes?.[variant] ?? DEFAULT_FONT_SIZES[variant];
|
|
48
|
-
const f = fontSize || baseFontSize;
|
|
48
|
+
const f = fontSize || (style as any)?.fontSize || baseFontSize;
|
|
49
49
|
const lh = lineHeight || f * 1.2;
|
|
50
50
|
const styles: any = StyleSheet.create({
|
|
51
51
|
text: {
|