Skip to content

Commit

Permalink
fix(MenuButton): fix wrong arrow hover color, close alibaba-fusion#2603
Browse files Browse the repository at this point in the history
  • Loading branch information
galo.gm authored and youluna committed Apr 23, 2021
1 parent a6f5269 commit f93b366
Showing 1 changed file with 52 additions and 14 deletions.
66 changes: 52 additions & 14 deletions src/menu-button/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,70 @@
}
// --------- this is for config platform

&.#{$css-prefix}btn-normal .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-pure-text-normal-icon-color;
&.#{$css-prefix}btn-normal {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-pure-text-normal-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-pure-normal-color-hover;
}
}

&.#{$css-prefix}btn-secondary .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-pure-text-secondary-icon-color;
&.#{$css-prefix}btn-secondary {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-pure-text-secondary-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-pure-secondary-color-hover;
}
&.#{$css-prefix}btn-text:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-text-secondary-color-hover;
}
}

&.#{$css-prefix}btn-primary .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-pure-text-primary-icon-color;
&.#{$css-prefix}btn-primary {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-pure-text-primary-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-pure-primary-color-hover;
}
}

&.#{$css-prefix}btn-text.#{$css-prefix}btn-normal .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-text-text-normal-icon-color;
&.#{$css-prefix}btn-text.#{$css-prefix}btn-normal {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-text-text-normal-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-text-normal-color-hover;
}
}

&.#{$css-prefix}btn-text.#{$css-prefix}btn-primary .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-text-text-primary-icon-color;
&.#{$css-prefix}btn-text.#{$css-prefix}btn-primary {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-text-text-primary-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-text-primary-color-hover;
}
}

&.#{$css-prefix}btn-ghost.#{$css-prefix}btn-light .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-ghost-light-icon-color;
&.#{$css-prefix}btn-ghost.#{$css-prefix}btn-light {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-ghost-light-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-ghost-light-color-hover;
}
}

&.#{$css-prefix}btn-ghost.#{$css-prefix}btn-dark .#{$css-prefix}menu-btn-arrow {
color: $menu-btn-ghost-dark-icon-color;
&.#{$css-prefix}btn-ghost.#{$css-prefix}btn-dark {
.#{$css-prefix}menu-btn-arrow {
color: $menu-btn-ghost-dark-icon-color;
}
&:hover .#{$css-prefix}menu-btn-arrow {
color: $btn-ghost-dark-color-hover;
}
}

&.disabled .#{$css-prefix}menu-btn-arrow,
Expand Down

0 comments on commit f93b366

Please sign in to comment.