fix styling props on Text component

This commit is contained in:
jeffvli
2025-10-03 17:53:35 -07:00
parent f610489a61
commit 00e7b4a9d5
2 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
user-select: auto; user-select: auto;
} }
.root.muted { .muted {
color: var(--theme-colors-foreground-muted); color: var(--theme-colors-foreground-muted);
} }
@@ -23,6 +23,6 @@
white-space: nowrap; white-space: nowrap;
} }
.root.no-select { .no-select {
user-select: none; user-select: none;
} }
+8 -6
View File
@@ -33,12 +33,14 @@ export const _Text = ({
}: TextProps) => { }: TextProps) => {
return ( return (
<MantineText <MantineText
className={clsx(styles.root, { classNames={{
[styles.link]: isLink, root: clsx(styles.root, {
[styles.muted]: isMuted, [styles.link]: isLink,
[styles.noSelect]: isNoSelect, [styles.muted]: isMuted,
[styles.overflowHidden]: overflow === 'hidden', [styles.noSelect]: isNoSelect,
})} [styles.overflowHidden]: overflow === 'hidden',
}),
}}
component="div" component="div"
fw={weight} fw={weight}
style={ style={