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;
}
.root.muted {
.muted {
color: var(--theme-colors-foreground-muted);
}
@@ -23,6 +23,6 @@
white-space: nowrap;
}
.root.no-select {
.no-select {
user-select: none;
}
+8 -6
View File
@@ -33,12 +33,14 @@ export const _Text = ({
}: TextProps) => {
return (
<MantineText
className={clsx(styles.root, {
[styles.link]: isLink,
[styles.muted]: isMuted,
[styles.noSelect]: isNoSelect,
[styles.overflowHidden]: overflow === 'hidden',
})}
classNames={{
root: clsx(styles.root, {
[styles.link]: isLink,
[styles.muted]: isMuted,
[styles.noSelect]: isNoSelect,
[styles.overflowHidden]: overflow === 'hidden',
}),
}}
component="div"
fw={weight}
style={