-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components): update Tabs Menu to v5 syntax and tweak useVisibleRange
Ticket: issue/Transversal-314 Reviewed-by: @MIGUELez11 Refs: #201
- Loading branch information
1 parent
6e25a74
commit fc77712
Showing
4 changed files
with
62 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 23 additions & 9 deletions
32
packages/components/src/navigation/Tabs/TabNavList/Dropdown.styles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
|
||
export const DropdownStyles = createStyles((theme, {}, getRef) => { | ||
return { | ||
root: { | ||
paddingLeft: theme.spacing['3'], | ||
display: 'flex', | ||
alignItems: 'center', | ||
// paddingBottom: theme.spacing['2'], | ||
const DropdownStyles = createStyles((theme, {}, getRef) => ({ | ||
root: { | ||
paddingLeft: theme.spacing['3'], | ||
display: 'flex', | ||
alignItems: 'center', | ||
zIndex: 1000, | ||
// paddingBottom: theme.spacing['2'], | ||
}, | ||
item: { | ||
'&:hover': { | ||
backgroundColor: theme.other.button.content.color.terciary.default, | ||
}, | ||
}; | ||
}); | ||
}, | ||
buttonIcon: { | ||
'&:hover': { | ||
backgroundColor: theme.other.buttonIcon.background.color.ghost.hover, | ||
'& > svg': { | ||
color: theme.other.buttonIcon.background.color.secondary.down, | ||
}, | ||
}, | ||
}, | ||
})); | ||
|
||
export { DropdownStyles }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters