Tweak settings labels

This commit is contained in:
Gregory Schier
2024-06-02 23:54:00 -07:00
parent fe862517fb
commit 3f72996e64
4 changed files with 16 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ export function SettingsAppearance() {
<Select
name="appearance"
label="Appearance"
labelPosition="left"
labelPosition="top"
size="sm"
value={settings.appearance}
onChange={(appearance) => {
@@ -123,7 +123,6 @@ export function SettingsAppearance() {
]}
/>
<HStack space={2}>
<div>Theme</div>
{(settings.appearance === 'system' || settings.appearance === 'light') && (
<Select
hideLabel

View File

@@ -133,7 +133,11 @@ export const Input = forwardRef<EditorView | undefined, InputProps>(function Inp
>
<label
htmlFor={id}
className={classNames(labelClassName, 'text-fg whitespace-nowrap', hideLabel && 'sr-only')}
className={classNames(
labelClassName,
'text-fg-subtle whitespace-nowrap',
hideLabel && 'sr-only',
)}
>
{label}
</label>

View File

@@ -85,7 +85,11 @@ export const PlainInput = forwardRef<HTMLInputElement, PlainInputProps>(function
>
<label
htmlFor={id}
className={classNames(labelClassName, 'text-fg whitespace-nowrap', hideLabel && 'sr-only')}
className={classNames(
labelClassName,
'text-fg-subtle whitespace-nowrap',
hideLabel && 'sr-only',
)}
>
{label}
</label>

View File

@@ -51,7 +51,11 @@ export function Select<T extends string>({
>
<label
htmlFor={id}
className={classNames(labelClassName, 'text-fg whitespace-nowrap', hideLabel && 'sr-only')}
className={classNames(
labelClassName,
'text-fg-subtle whitespace-nowrap',
hideLabel && 'sr-only',
)}
>
{label}
</label>