Skip to content

Commit

Permalink
feat(radio-button): add xs size
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and feoche committed May 20, 2024
1 parent 60d73b9 commit a74cbc5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
@return (
md: ods-get-radio-button-size-properties(md),
sm: ods-get-radio-button-size-properties(sm),
xs: ods-get-radio-button-size-properties(xs),
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
enum ODS_RADIO_BUTTON_SIZE {
md = 'md',
sm = 'sm',
xs = 'xs',
}

const ODS_RADIO_BUTTON_SIZES = Object.freeze(Object.values(ODS_RADIO_BUTTON_SIZE));
Expand Down
6 changes: 6 additions & 0 deletions packages/themes/blue-jeans/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@
),
),
$radio-button: (
xs: (
border-width: calc(0.2rem * var(--ods-size-ratio)),
height: calc(0.75rem * var(--ods-size-ratio)),
margin: calc(0.25rem * var(--ods-size-ratio)) calc(0.5rem * var(--ods-size-ratio)),
width: calc(0.75rem * var(--ods-size-ratio)),
),
sm: (
border-width: calc(0.2rem * var(--ods-size-ratio)),
height: calc(1.25rem * var(--ods-size-ratio)),
Expand Down

0 comments on commit a74cbc5

Please sign in to comment.