Skip to content

Commit

Permalink
feat: add position prop for custom styling
Browse files Browse the repository at this point in the history
Signed-off-by: Md Kaif Ansari <[email protected]>
  • Loading branch information
mdkaifansari04 committed Nov 30, 2024
1 parent b268058 commit 90e0ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom/CatalogFilterSection/CatalogFilterSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
theme.palette.mode === 'light' ? theme.palette.background.surfaces : darkTeal.main,
fontFamily: theme.typography.fontFamily,
position: styleProps?.position || 'relative',
top: styleProps?.top ? styleProps.top : styleProps?.position === 'sticky' ? '5rem' : ''
top: styleProps?.top ? styleProps.top : styleProps?.position === 'sticky' ? '6rem' : ''
};

const appliedStyleProps = {
Expand Down

0 comments on commit 90e0ec0

Please sign in to comment.