chore: adjust input style (#9217)

This commit is contained in:
JimmFly 2024-12-20 04:18:34 +00:00
parent 978c4c69b7
commit 2988dc284e
No known key found for this signature in database
GPG Key ID: 126E0320FEB0D05C
4 changed files with 15 additions and 11 deletions

View File

@ -8,7 +8,7 @@ export const inputWrapper = style({
gap: '10px',
color: cssVarV2('text/primary'),
border: '1px solid',
backgroundColor: cssVarV2('layer/background/primary'),
backgroundColor: cssVarV2('input/background'),
borderRadius: 8,
display: 'flex',
justifyContent: 'center',
@ -30,16 +30,16 @@ export const inputWrapper = style({
},
// color
'&.disabled': {
background: cssVar('hoverColor'),
background: cssVarV2('layer/background/hoverOverlay'),
},
'&.error': {
borderColor: cssVar('errorColor'),
borderColor: cssVarV2('input/border/error'),
},
'&.success': {
borderColor: cssVar('successColor'),
borderColor: cssVarV2('input/border/active'),
},
'&.warning': {
borderColor: cssVar('warningColor'),
borderColor: cssVarV2('input/border/error'),
},
'&.default': {
borderColor: cssVarV2.layer.insideBorder.blackBorder,
@ -74,13 +74,13 @@ export const input = style({
background: 'transparent',
selectors: {
'&::placeholder': {
color: cssVar('placeholderColor'),
color: cssVarV2('text/placeholder'),
},
'&:disabled': {
color: cssVar('textDisableColor'),
color: cssVarV2('text/disable'),
},
'&:-webkit-autofill': {
WebkitBoxShadow: `0 0 0 1000px ${cssVar('white')} inset`,
WebkitBoxShadow: `0 0 0 1000px ${cssVarV2('layer/white')} inset`,
},
},
});

View File

@ -87,6 +87,11 @@ export const ConfirmModal = ({
onClick={onCancel}
data-testid="confirm-modal-cancel"
{...cancelButtonOptions}
variant={
cancelButtonOptions?.variant
? cancelButtonOptions.variant
: 'secondary'
}
>
{cancelText}
</Button>

View File

@ -45,7 +45,7 @@ export const tagsEditorSelectedTags = style({
gap: '4px',
flexWrap: 'wrap',
padding: '10px 12px',
backgroundColor: cssVar('hoverColor'),
backgroundColor: cssVarV2('input/background'),
minHeight: 42,
selectors: {
[`${tagsEditorRootMobile} &`]: {
@ -66,7 +66,7 @@ export const searchInput = style({
color: 'inherit',
backgroundColor: 'transparent',
'::placeholder': {
color: cssVar('placeholderColor'),
color: cssVarV2('text/placeholder'),
},
});

View File

@ -73,7 +73,6 @@ export const itemContent = style({
fontSize: cssVar('fontSm'),
fontWeight: 500,
lineHeight: '22px',
color: cssVarV2('text/emphasis'),
});
export const itemIcon = style({