From af238ef193cb6c335ade3681cb6a55575a6ad611 Mon Sep 17 00:00:00 2001 From: SySagar Date: Sat, 14 Sep 2024 21:19:21 +0530 Subject: [PATCH] style(font): font from parent --- .changeset/unlucky-flowers-worry.md | 5 +++++ apps/ui/lib/components/Typography/Text.tsx | 3 +-- packages/tokens/src/typography/base.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changeset/unlucky-flowers-worry.md diff --git a/.changeset/unlucky-flowers-worry.md b/.changeset/unlucky-flowers-worry.md new file mode 100644 index 0000000..e8a5a75 --- /dev/null +++ b/.changeset/unlucky-flowers-worry.md @@ -0,0 +1,5 @@ +--- +'@groovy-box/ui': patch +--- + +style: font from parent diff --git a/apps/ui/lib/components/Typography/Text.tsx b/apps/ui/lib/components/Typography/Text.tsx index 47bd8bc..94389e6 100644 --- a/apps/ui/lib/components/Typography/Text.tsx +++ b/apps/ui/lib/components/Typography/Text.tsx @@ -37,9 +37,8 @@ export const Text: React.FC = ({ const Comp = asChild ? Slot : 'p'; const classNames = VARIANT_MAPPINGS[variant as keyof typeof VARIANT_MAPPINGS]; - console.log('test', classNames?.slice(1)); const mergedClasses = cn(style.text, classNames?.slice(1), props.className); - console.log('merged classes', mergedClasses); + return (