Commit d926c427 authored by tom's avatar tom

update styles for textarea

parent eab4b2ab
...@@ -24,7 +24,7 @@ export const recipe = defineSlotRecipe({ ...@@ -24,7 +24,7 @@ export const recipe = defineSlotRecipe({
userSelect: 'none', userSelect: 'none',
zIndex: '1', zIndex: '1',
_disabled: { _disabled: {
opacity: '0.5', opacity: 'control.disabled',
}, },
_invalid: { _invalid: {
color: 'input.fg.error', color: 'input.fg.error',
...@@ -143,10 +143,13 @@ export const recipe = defineSlotRecipe({ ...@@ -143,10 +143,13 @@ export const recipe = defineSlotRecipe({
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
overflow: 'hidden', overflow: 'hidden',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
// 16px = scrollbar width // 20px = scrollbar width
// 4px = border width
width: 'calc(100% - 4px - 20px)', width: 'calc(100% - 4px - 20px)',
padding: '20px 24px 0px 24px', padding: '16px 16px 0px 16px',
textStyle: 'xs', textStyle: 'xs',
borderTopRightRadius: '0px',
borderBottomRightRadius: '0px',
_peerPlaceholderShown: { _peerPlaceholderShown: {
textStyle: 'md', textStyle: 'md',
}, },
......
...@@ -82,8 +82,7 @@ export const recipe = defineRecipe({ ...@@ -82,8 +82,7 @@ export const recipe = defineRecipe({
}, },
}, },
_disabled: { _disabled: {
bg: 'input.bg.disabled', opacity: 'control.disabled',
borderColor: 'input.border.disabled',
}, },
_invalid: { _invalid: {
borderColor: 'input.border.error', borderColor: 'input.border.error',
......
...@@ -22,8 +22,9 @@ export const recipe = defineRecipe({ ...@@ -22,8 +22,9 @@ export const recipe = defineRecipe({
size: { size: {
'2xl': { '2xl': {
textStyle: 'md', textStyle: 'md',
px: '6',
py: '4', py: '4',
pl: '4',
pr: '5', // === scrollbar width
scrollPaddingBottom: '4', scrollPaddingBottom: '4',
}, },
}, },
...@@ -39,6 +40,7 @@ export const recipe = defineRecipe({ ...@@ -39,6 +40,7 @@ export const recipe = defineRecipe({
}, },
_focus: { _focus: {
borderColor: 'input.border.focus', borderColor: 'input.border.focus',
boxShadow: 'size.md',
_hover: { _hover: {
borderColor: 'input.border.focus', borderColor: 'input.border.focus',
}, },
...@@ -56,8 +58,7 @@ export const recipe = defineRecipe({ ...@@ -56,8 +58,7 @@ export const recipe = defineRecipe({
}, },
_disabled: { _disabled: {
pointerEvents: 'none', pointerEvents: 'none',
bg: 'input.bg.disabled', opacity: 'control.disabled',
borderColor: 'input.border.disabled',
}, },
_invalid: { _invalid: {
borderColor: 'input.border.error', borderColor: 'input.border.error',
...@@ -70,7 +71,10 @@ export const recipe = defineRecipe({ ...@@ -70,7 +71,10 @@ export const recipe = defineRecipe({
floating: { floating: {
'true': { 'true': {
paddingTop: '40px', paddingTop: '8',
_placeholderShown: {
paddingTop: '10',
},
}, },
}, },
}, },
......
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