Commit 4662e86f authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Input/select placeholder font change (#2844)

* font weights

* change input placeholder colors

* update screenshots pt 1

* update screenshots pt 2

* update screenshots pt 3
parent cbaa1dec
...@@ -59,7 +59,7 @@ export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>( ...@@ -59,7 +59,7 @@ export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(
return ( return (
<Group ref={ ref } w="100%" { ...rest }> <Group ref={ ref } w="100%" { ...rest }>
{ startElement && ( { startElement && (
<InputElement pointerEvents="none" ref={ startElementRef } px={ 0 } color="gray.500" { ...startElementProps }> <InputElement pointerEvents="none" ref={ startElementRef } px={ 0 } color="input.placeholder" { ...startElementProps }>
{ startElement } { startElement }
</InputElement> </InputElement>
) } ) }
...@@ -76,7 +76,7 @@ export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>( ...@@ -76,7 +76,7 @@ export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(
}); });
}) } }) }
{ endElement && ( { endElement && (
<InputElement placement="end" ref={ endElementRef } px={ 0 } color="gray.500" { ...endElementProps }> <InputElement placement="end" ref={ endElementRef } px={ 0 } color="input.placeholder" { ...endElementProps }>
{ endElement } { endElement }
</InputElement> </InputElement>
) } ) }
......
...@@ -268,13 +268,13 @@ const semanticTokens: ThemingConfig['semanticTokens'] = { ...@@ -268,13 +268,13 @@ const semanticTokens: ThemingConfig['semanticTokens'] = {
error: { value: '{colors.red.500}' }, error: { value: '{colors.red.500}' },
}, },
placeholder: { placeholder: {
DEFAULT: { value: '{colors.gray.500}' }, DEFAULT: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
error: { value: '{colors.red.500}' }, error: { value: '{colors.red.500}' },
}, },
}, },
field: { field: {
placeholder: { placeholder: {
DEFAULT: { value: '{colors.gray.500}' }, DEFAULT: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
disabled: { value: '{colors.gray.500/20}' }, disabled: { value: '{colors.gray.500/20}' },
error: { value: '{colors.red.500}' }, error: { value: '{colors.red.500}' },
}, },
...@@ -305,12 +305,12 @@ const semanticTokens: ThemingConfig['semanticTokens'] = { ...@@ -305,12 +305,12 @@ const semanticTokens: ThemingConfig['semanticTokens'] = {
}, },
indicator: { indicator: {
fg: { fg: {
DEFAULT: { value: '{colors.gray.500}' }, DEFAULT: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
}, },
}, },
placeholder: { placeholder: {
fg: { fg: {
DEFAULT: { value: '{colors.gray.500}' }, DEFAULT: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
error: { value: '{colors.red.500}' }, error: { value: '{colors.red.500}' },
}, },
}, },
......
...@@ -14,6 +14,7 @@ export const recipe = defineRecipe({ ...@@ -14,6 +14,7 @@ export const recipe = defineRecipe({
color: 'input.fg', color: 'input.fg',
'--focus-color': 'colors.border.error', '--focus-color': 'colors.border.error',
'--error-color': 'colors.border.error', '--error-color': 'colors.border.error',
fontWeight: 'medium',
_invalid: { _invalid: {
focusRingColor: 'var(--error-color)', focusRingColor: 'var(--error-color)',
borderColor: 'var(--error-color)', borderColor: 'var(--error-color)',
......
...@@ -20,7 +20,7 @@ export const recipe = defineSlotRecipe({ ...@@ -20,7 +20,7 @@ export const recipe = defineSlotRecipe({
borderRadius: 'base', borderRadius: 'base',
userSelect: 'none', userSelect: 'none',
textAlign: 'start', textAlign: 'start',
fontWeight: 'semibold', fontWeight: 'medium',
cursor: 'pointer', cursor: 'pointer',
focusVisibleRing: 'none', focusVisibleRing: 'none',
_disabled: { _disabled: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment