Skip to content

Commit

Permalink
fix: fix menu and spin style in compact mode (ant-design#22908)
Browse files Browse the repository at this point in the history
* fix: fix menu and spin style in compact mode

* patch
  • Loading branch information
AshoneA authored Apr 5, 2020
1 parent 4e20ed2 commit d0f81de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions components/menu/style/dark.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.@{menu-prefix-cls} {
// dark theme
&-dark,
&-dark &-sub {
&&-dark,
&&-dark &-sub {
color: @menu-dark-color;
background: @menu-dark-bg;
.@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
Expand Down Expand Up @@ -94,6 +94,10 @@
background-color: @menu-dark-item-hover-bg;
}

&-dark&-dark:not(&-horizontal) &-item-selected {
background-color: @menu-dark-item-active-bg;
}

&-dark &-item-selected {
color: @menu-dark-highlight-color;
border-right: 0;
Expand Down
2 changes: 1 addition & 1 deletion components/spin/demo/size.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ReactDOM.render(
```

<style>
.ant-spin {
.ant-spin.ant-spin-spinning {
margin-right: 16px;
}
</style>

0 comments on commit d0f81de

Please sign in to comment.