Skip to content

Commit

Permalink
style(comp:dropdown): add padding to menu within dropdown (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Feb 23, 2023
1 parent 1440ea0 commit 8c65c6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/dropdown/docs/Theme.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
| `@dropdown-border-radius` | `@menu-overlay-border-radius` | - | - |
| `@dropdown-box-shadow` | `@menu-overlay-box-shadow` | - | - |
| `@dropdown-min-width` | `@menu-overlay-min-width` | - | - |
| `@dropdown-menu-container-padding` | `@spacing-sm 0` | `@spacing-xs 0` | - |
1 change: 1 addition & 0 deletions packages/components/dropdown/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

.@{menu-prefix}-dropdown {
box-shadow: none;
padding: @dropdown-menu-container-padding;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
@dropdown-border-radius: @menu-overlay-border-radius;
@dropdown-box-shadow: @menu-overlay-box-shadow;
@dropdown-min-width: @menu-overlay-min-width;

@dropdown-menu-container-padding: @spacing-sm 0;
2 changes: 2 additions & 0 deletions packages/components/dropdown/style/themes/seer.variable.less
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import './default.variable.less';

@dropdown-menu-container-padding: @spacing-xs 0;

0 comments on commit 8c65c6c

Please sign in to comment.