Skip to content

Commit

Permalink
feat(UnitsTab): add left padding to Box component
Browse files Browse the repository at this point in the history
- Add 12px left padding prop to Box component in UnitsTab (mobile and desktop)
- Maintain existing styling for other radio button variants
  • Loading branch information
assadk88 committed Sep 9, 2024
1 parent a41f9da commit bc2099d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/CurriculumComponents/UnitsTab/UnitsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const UnitsTab: FC<UnitsTabProps> = ({ trackingData, formattedData }) => {
value={selectedThread ? selectedThread.slug : ""}
>
<SkipLink href="#content">Skip to units</SkipLink>
<Box $mv={16}>
<Box $mv={16} $pl={12} $bl={1} $borderColor="transparent">
<RadioButton
aria-label={"None highlighted"}
value={""}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ const UnitsTabMobile: FC<UnitsTabMobileProps> = ({
onChange={(e) => handleSelectThread(e.target.value)}
>
<Box>
<Box $mv={16} $position={"relative"}>
<Box
$mv={16}
$pl={12}
$position={"relative"}
$bl={1}
$borderColor="transparent"
>
<RadioButton
aria-label={"None highlighted"}
value={""}
Expand Down

0 comments on commit bc2099d

Please sign in to comment.