Skip to content

Commit c8e2c34

Browse files
author
Alunara
committed
styling: add large tab exceptions
1 parent a2f2968 commit c8e2c34

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/curve-ui-kit/src/themes/tabs/mui-tabs.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,14 @@ export const defineMuiTabs = ({
139139
...tabSizesNonContained,
140140
},
141141

142-
// Large tabs get a larger border size.
142+
// Large tabs don't get a hover border
143143
[`&.${large} .MuiTab-root::after`]: {
144-
height: BORDER_SIZE_LARGE,
144+
height: '0px',
145+
},
146+
147+
// Large overline tabs don't get a hover fill
148+
[`&.${large}&.${overlined} .MuiTab-root:hover`]: {
149+
backgroundColor: 'unset',
145150
},
146151
},
147152
indicator: {

0 commit comments

Comments
 (0)