Skip to content

Commit

Permalink
fix: add size fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Sep 4, 2024
1 parent c9e44e4 commit b0f76f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/epo-react-lib/src/form/Input/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ export const Input = styled.input`
--color-input-border-hover: var(--color-font-accent);
border: 1px solid var(--color-input-border);
border-radius: var(--size-spacing-3xs);
border-radius: var(--size-spacing-3xs, calc(1em * 0.25));
box-sizing: border-box;
font-weight: var(--weight-font-normal);
height: var(--size-spacing-xl);
height: var(--size-spacing-xl, calc(1em * 3));
line-height: 1;
width: 100%;
padding: var(--size-spacing-s);
padding: var(--size-spacing-s, 1em);
&:not(:disabled):hover,
&:not(:disabled):focus-within {
Expand Down
2 changes: 1 addition & 1 deletion packages/epo-react-lib/src/molecules/FormElement/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from "styled-components";

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

Expand Down

0 comments on commit b0f76f5

Please sign in to comment.