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