mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 04:21:49 +03:00
chore: adjust input style (#9217)
This commit is contained in:
parent
978c4c69b7
commit
2988dc284e
@ -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`,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@ -87,6 +87,11 @@ export const ConfirmModal = ({
|
||||
onClick={onCancel}
|
||||
data-testid="confirm-modal-cancel"
|
||||
{...cancelButtonOptions}
|
||||
variant={
|
||||
cancelButtonOptions?.variant
|
||||
? cancelButtonOptions.variant
|
||||
: 'secondary'
|
||||
}
|
||||
>
|
||||
{cancelText}
|
||||
</Button>
|
||||
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -73,7 +73,6 @@ export const itemContent = style({
|
||||
fontSize: cssVar('fontSm'),
|
||||
fontWeight: 500,
|
||||
lineHeight: '22px',
|
||||
color: cssVarV2('text/emphasis'),
|
||||
});
|
||||
|
||||
export const itemIcon = style({
|
||||
|
Loading…
Reference in New Issue
Block a user