mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix styling props on Text component
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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={
|
||||||
|
|||||||
Reference in New Issue
Block a user