Skip to content

Commit b0f76f5

Browse files
committed
fix: add size fallbacks
1 parent c9e44e4 commit b0f76f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/epo-react-lib/src/form/Input/styles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ export const Input = styled.input`
55
--color-input-border-hover: var(--color-font-accent);
66
77
border: 1px solid var(--color-input-border);
8-
border-radius: var(--size-spacing-3xs);
8+
border-radius: var(--size-spacing-3xs, calc(1em * 0.25));
99
box-sizing: border-box;
1010
font-weight: var(--weight-font-normal);
11-
height: var(--size-spacing-xl);
11+
height: var(--size-spacing-xl, calc(1em * 3));
1212
line-height: 1;
1313
width: 100%;
14-
padding: var(--size-spacing-s);
14+
padding: var(--size-spacing-s, 1em);
1515
1616
&:not(:disabled):hover,
1717
&:not(:disabled):focus-within {

packages/epo-react-lib/src/molecules/FormElement/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from "styled-components";
33

44
export const Container = styled.div`
55
> * + * {
6-
margin-block-start: var(--size-spacing-3xs);
6+
margin-block-start: var(--size-spacing-3xs, calc(1em * 0.25));
77
}
88
`;
99

0 commit comments

Comments
 (0)