Skip to content

Commit

Permalink
fix: fix border width in components
Browse files Browse the repository at this point in the history
  • Loading branch information
tatinacher committed Apr 26, 2021
1 parent 75093a0 commit 7f848c0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
8 changes: 2 additions & 6 deletions src/lib/box-styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Global = styled.div`
--woly-neutral: var(--palette-snow-500);
--woly-focus: var(--palette-lavender-500);
--woly-background: var(--palette-snow-0);
[data-variant='primary'] {
--woly-shape-default: var(--palette-lavender-300);
--woly-shape-disabled: var(--palette-snow-300);
Expand All @@ -50,8 +50,6 @@ export const Global = styled.div`
}
[data-variant='secondary'] {
--woly-border-width: 1.5px;
--woly-background: #ffffff;
--woly-border: #b0a3f4;
--woly-color: #b0a3f4;
Expand All @@ -69,8 +67,6 @@ export const Global = styled.div`
--woly-fill-disabled: #e4e4e4;
}
[data-variant='error'] {
--woly-border-width: 1.5px;
--woly-background: #ffffff;
--woly-border: #eb5656;
--woly-color: #eb5656;
Expand Down Expand Up @@ -171,7 +167,7 @@ const Frame = styled.div`
max-width: 100%;
padding: 1rem;
overflow: auto;
border: 2px solid var(--base, rgb(246, 248, 250));
border: 2px solid rgb(246, 248, 250);
border-radius: 4px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/atoms/button-floating/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ButtonFloating = styled(ButtonFloatingBase)`
border-color: var(--woly-border, #000000);
border-style: solid;
border-width: var(--woly-border-width, 0);
border-width: var(--woly-border-width);
border-radius: 50%;
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/atoms/chip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const Chip = styled(ChipBase)`
border-color: var(--woly-border, transparent);
border-style: solid;
border-width: var(--woly-border-width, 0);
border-width: var(--woly-border-width);
border-radius: var(--woly-rounding, 3px);
outline: none;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/atoms/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const List = styled(ListBase)`
&:active {
border-color: var(--woly-border-focus, #1f68f5);
border-style: solid;
border-width: var(--woly-border-width, 1.5px);
border-width: var(--woly-border-width);
}
&[data-disabled='true'] {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/atoms/surface/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Surface = styled.div.attrs(map)`
background-color: var(--woly-canvas, #ffffff);
border-color: var(--woly-border, #000000);
border-style: solid;
border-width: var(--woly-border-width, 0);
border-width: var(--woly-border-width);
border-radius: var(--woly-rounding, 3px);
box-shadow: var(--woly-box-shadow, 3px 3px 8px rgba(11, 31, 53, 0.04));
`;
2 changes: 1 addition & 1 deletion src/ui/atoms/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const Tooltip = styled(TooltipBase)`
background-color: var(--woly-background, #ffffff);
border-color: var(--woly-border, var(--woly-background, #ffffff));
border-style: solid;
border-width: var(--woly-border-width, 0);
border-width: var(--woly-border-width);
border-radius: var(--woly-rounding, 6px);
transition: all 0.3s ease-in-out;
Expand Down
4 changes: 2 additions & 2 deletions src/ui/molecules/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const Select = styled(SelectBase)`
background: var(--woly-canvas, #ffffff);
border-color: var(--woly-border, var(--woly-background, #f8f7f7));
border-style: solid;
border-width: var(--woly-border-width, 1.5px);
border-width: var(--woly-border-width);
border-radius: var(--woly-rounding, 3px);
box-sizing: border-box;
color: var(--woly-color, #000000);
Expand All @@ -181,7 +181,7 @@ export const Select = styled(SelectBase)`
background-color: var(--woly-canvas, #ffffff);
border-color: var(--woly-border, var(--woly-background, #f8f7f7));
border-style: solid;
border-width: var(--woly-border-width, 1px);
border-width: var(--woly-border-width);
border-radius: var(--woly-rounding, 3px);
padding: 0;
z-index: 1;
Expand Down

0 comments on commit 7f848c0

Please sign in to comment.