Skip to content

Commit

Permalink
chore: adjust input style (toeverything#9217)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmFly committed Dec 20, 2024
1 parent 978c4c6 commit 2988dc2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
16 changes: 8 additions & 8 deletions packages/frontend/component/src/ui/input/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down Expand Up @@ -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`,
},
},
});
5 changes: 5 additions & 0 deletions packages/frontend/component/src/ui/modal/confirm-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ export const ConfirmModal = ({
onClick={onCancel}
data-testid="confirm-modal-cancel"
{...cancelButtonOptions}
variant={
cancelButtonOptions?.variant
? cancelButtonOptions.variant
: 'secondary'
}
>
{cancelText}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/core/src/components/tags/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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} &`]: {
Expand All @@ -66,7 +66,7 @@ export const searchInput = style({
color: 'inherit',
backgroundColor: 'transparent',
'::placeholder': {
color: cssVar('placeholderColor'),
color: cssVarV2('text/placeholder'),
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const itemContent = style({
fontSize: cssVar('fontSm'),
fontWeight: 500,
lineHeight: '22px',
color: cssVarV2('text/emphasis'),
});

export const itemIcon = style({
Expand Down

0 comments on commit 2988dc2

Please sign in to comment.