Skip to content

Commit

Permalink
Make datepicker spinners to have fixed width so the sizing change doe…
Browse files Browse the repository at this point in the history
…snt affect the entire component
  • Loading branch information
astrit committed Jan 23, 2025
1 parent 3ab0f11 commit b002a81
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions libs/core/src/components/datepicker/datepicker.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const styles = css`
display: flex;
align-items: center;
justify-content: flex-start;
min-width: 10ch;
inline-size: 11ch;
gap: var(--gds-space-4xs);
font-size: var(--gds-text-size-detail-s);
font-weight: var(--gds-text-weight-regular);
Expand All @@ -36,9 +36,8 @@ export const styles = css`
text-align: center;
height: 100%;
box-sizing: border-box;
border-radius: var(--gds-space-2xs);
/* border-radius: var(--gds-space-2xs); */
outline: none;
padding-inline: var(--gds-space-2xs);
padding-block: var(--gds-space-3xs);
text-transform: uppercase;
line-height: 1;
Expand All @@ -48,14 +47,6 @@ export const styles = css`
background-color: var(--gds-color-l3-background-primary);
color: var(--gds-color-l3-content-primary);
}
&[data-max-width='4'] {
width: calc(4ch + (var(--gds-space-2xs) * 2));
}
&[data-max-width='2'] {
width: calc(2ch + (var(--gds-space-2xs) * 2));
}
}
}
`

0 comments on commit b002a81

Please sign in to comment.