diff --git a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap index bf048596f413..66a3444e96ee 100644 --- a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap +++ b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap @@ -237,6 +237,34 @@ exports[`renders ./components/dropdown/demo/item.md correctly 1`] = ` `; +exports[`renders ./components/dropdown/demo/menu-full.md correctly 1`] = ` + + Hover to check menu style + + + + +`; + exports[`renders ./components/dropdown/demo/overlay-visible.md correctly 1`] = ` + + + Navigation One + + } + > + + Option 1 + Option 2 + + + Option 3 + Option 4 + + + + + Navigation Two + + } + > + Option 5 + Option 6 + + Option 7 + Option 8 + + + + + Navigation Three + + } + > + Option 9 + Option 10 + Option 11 + Option 12 + + +); + +ReactDOM.render( + + + Hover to check menu style + + , + mountNode, +); +``` diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index 024684b1aa07..ff9adc2eadb9 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -72,6 +72,16 @@ > .@{dropdown-prefix-cls}-menu { transform-origin: 0 0; } + + ul, + li { + list-style: none; + } + + ul { + margin-right: 0.3em; + margin-left: 0.3em; + } } &-item, @@ -87,9 +97,10 @@ cursor: pointer; transition: all 0.3s; - > .anticon:first-child { + > span > .anticon:first-child { min-width: 12px; margin-right: 8px; + font-size: @font-size-sm; } > a {