mirror of
https://github.com/jeffvli/feishin.git
synced 2026-08-08 05:12:57 +02:00
fix description/label styles to be consistent
This commit is contained in:
@@ -25,7 +25,13 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
.section {
|
||||
|
||||
@@ -26,6 +26,7 @@ export const Autocomplete = forwardRef<HTMLInputElement, AutocompleteProps>(
|
||||
return (
|
||||
<MantineAutocomplete
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
dropdown: styles.dropdown,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
|
||||
@@ -25,7 +25,13 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
|
||||
@@ -16,6 +16,7 @@ export const ColorInput = ({
|
||||
return (
|
||||
<MantineColorInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
dropdown: styles.dropdown,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
|
||||
@@ -17,3 +17,13 @@
|
||||
.required {
|
||||
color: var(--theme-colors-state-error);
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ export const DateInput = ({
|
||||
return (
|
||||
<MantineDateInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
@@ -56,6 +57,7 @@ export const DateTimeInput = ({
|
||||
return (
|
||||
<MantineDateTimeInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -17,3 +17,13 @@
|
||||
.required {
|
||||
color: var(--theme-colors-state-error);
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ export const DateTimePicker = ({
|
||||
return (
|
||||
<MantineDateTimePicker
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -35,6 +35,12 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-family: var(--theme-label-font-family);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ export const FileInput = forwardRef<HTMLButtonElement, FileInputProps>(
|
||||
return (
|
||||
<MantineFileInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -35,5 +35,11 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ export const JsonInput = forwardRef<HTMLTextAreaElement, JsonInputProps>(
|
||||
return (
|
||||
<MantineJsonInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -5,7 +5,13 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface MultiSelectProps extends MantineMultiSelectProps {
|
||||
}
|
||||
|
||||
const defaultClassNames = {
|
||||
description: styles.description,
|
||||
dropdown: styles.dropdown,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
|
||||
@@ -42,5 +42,11 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
||||
<MantineNumberInput
|
||||
classNames={{
|
||||
control: styles.control,
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -35,5 +35,11 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(
|
||||
return (
|
||||
<MantinePasswordInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
@@ -57,3 +57,9 @@
|
||||
.option:hover {
|
||||
background: lighten(var(--theme-colors-surface), 5%);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ export const Select = ({
|
||||
<MantineSelect
|
||||
allowDeselect={allowDeselect || clearable}
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
dropdown: styles.dropdown,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
|
||||
@@ -5,7 +5,13 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface TagsInputProps extends MantineTagsInputProps {
|
||||
}
|
||||
|
||||
const defaultClassNames = {
|
||||
description: styles.description,
|
||||
dropdown: styles.dropdown,
|
||||
input: styles.input,
|
||||
inputField: styles.inputField,
|
||||
|
||||
@@ -23,7 +23,13 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
.section {
|
||||
|
||||
@@ -28,6 +28,7 @@ export const TextInput = forwardRef<HTMLInputElement, TextInputProps>(
|
||||
return (
|
||||
<MantineTextInput
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
@@ -23,7 +23,13 @@
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-bottom: var(--theme-spacing-sm);
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-bottom: var(--theme-spacing-xs);
|
||||
font-size: var(--theme-font-size-xs);
|
||||
color: var(--theme-colors-foreground-muted);
|
||||
}
|
||||
|
||||
.required {
|
||||
|
||||
@@ -25,6 +25,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||
return (
|
||||
<MantineTextarea
|
||||
classNames={{
|
||||
description: styles.description,
|
||||
input: styles.input,
|
||||
label: styles.label,
|
||||
required: styles.required,
|
||||
|
||||
Reference in New Issue
Block a user