Skip to content

Commit

Permalink
Wrapped List in div
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikagonuguntla committed Nov 15, 2024
1 parent 5222d59 commit db657d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
36 changes: 17 additions & 19 deletions src/components/SubNav/SubNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,25 +221,23 @@ export const SubNav: ChakraComponent<
gap="1rem"
justify="space-between"
>
<div style={styles.primaryList}>
<List
type="ul"
m="0"
sx={{
...styles.listCleanup,
...styles.scrollableList,
...styles.primaryActions,
}}
ref={scrollableRef}
inline
noStyling
>
{primaryActions}
</List>
{showRightFade && (
<Box sx={styles.fadeEffect} />
)}
</div>
<div style={styles.primaryList}>
<List
type="ul"
m="0"
sx={{
...styles.listCleanup,
...styles.scrollableList,
...styles.primaryActions,
}}
ref={scrollableRef}
inline
noStyling
>
{primaryActions}
</List>
{showRightFade && <Box sx={styles.fadeEffect} />}
</div>
{secondaryActions ? (
<List
noStyling
Expand Down
10 changes: 5 additions & 5 deletions src/theme/components/subnav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ const SubNav = subNavDefineMultiStyleConfig({
margin: "0 !important",
},
primaryList: {
position: 'relative',
display: 'flex',
width: '100%',
overflowX: 'auto'
}
position: "relative",
display: "flex",
width: "100%",
overflowX: "auto",
},
};
}
),
Expand Down

0 comments on commit db657d6

Please sign in to comment.