Skip to content

Commit 476de45

Browse files
committed
[nav-tabs-style] make hover state underline thinner and make sure current + hover doesn't have a visual difference
1 parent b8c8ad6 commit 476de45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/wonder-blocks-tabs/src/components/navigation-tab-item.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const styles = StyleSheet.create({
108108
listStyle: "none",
109109
display: "inline-flex",
110110
[":has(a:hover)" as any]: {
111-
boxShadow: `inset 0 -${sizing.size_050} 0 0 ${semanticColor.action.secondary.progressive.hover.foreground}`,
111+
boxShadow: `inset 0 -${sizing.size_025} 0 0 ${semanticColor.action.secondary.progressive.hover.foreground}`,
112112
},
113113
[":has(a:active)" as any]: {
114114
boxShadow: `inset 0 -${sizing.size_075} 0 0 ${semanticColor.action.secondary.progressive.press.foreground}`,
@@ -122,6 +122,10 @@ const styles = StyleSheet.create({
122122
},
123123
current: {
124124
boxShadow: `inset 0 -${sizing.size_050} 0 0 ${semanticColor.action.secondary.progressive.default.foreground}`,
125+
[":has(a:hover)" as any]: {
126+
// Make sure hover state for current item is the same underline at rest
127+
boxShadow: `inset 0 -${sizing.size_050} 0 0 ${semanticColor.action.secondary.progressive.default.foreground}`,
128+
},
125129
},
126130
currentLink: {
127131
color: semanticColor.action.secondary.progressive.default.foreground,

0 commit comments

Comments
 (0)