Skip to content

Commit

Permalink
fix(Nav): increase css priotiry, close alibaba-fusion#4050
Browse files Browse the repository at this point in the history
  • Loading branch information
lakerswgq committed Aug 18, 2022
1 parent af9605d commit 3953968
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/nav/scss/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
background: $selectedBgColor;
color: $selectedColor;
font-weight: $selectedWeight;

&.#{$css-prefix}nav-item {
background: $selectedBgColor;
color: $selectedColor;
}
}

&.#{$css-prefix}opened {
Expand Down Expand Up @@ -206,6 +211,13 @@
&.#{$css-prefix}selected {
background: $selectedBgColor;
color: $selectedColor;

// fix https://github.com/alibaba-fusion/next/issues/4050
// 这里冗余一下样式,避免影响之前生效的选择器样式
&.#{$css-prefix}nav-item {
background: $selectedBgColor;
color: $selectedColor;
}
}
}
}
Expand Down

0 comments on commit 3953968

Please sign in to comment.