Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: menu style broken in dropdown #19150

Merged
merged 2 commits into from Oct 15, 2019
Merged

fix: menu style broken in dropdown #19150

merged 2 commits into from Oct 15, 2019

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Oct 10, 2019

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

close #19145

💡 Background and solution

image

to

截屏2019-10-10上午11 40 06

📝 Changelog

Language Changelog
🇺🇸 English Fix broken menu style inside Dropdown.
🇨🇳 Chinese 修复 Dropdown 下部分 Menu 样式错乱的问题。

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

View rendered components/dropdown/demo/menu-full.md

@afc163 afc163 changed the title fix menu style broken in dropdown fix: menu style broken in dropdown Oct 10, 2019
@auto-add-label auto-add-label bot added the bug label Oct 10, 2019
@netlify
Copy link

netlify bot commented Oct 10, 2019

Deploy preview for ant-design ready!

Built with commit d077b51

https://deploy-preview-19150--ant-design.netlify.com

@afc163
Copy link
Member Author

afc163 commented Oct 10, 2019

ci 莫名其妙的挂了。

@buildsize
Copy link

buildsize bot commented Oct 11, 2019

File name Previous Size New Size Change
package-lock.json 890.05 KB 900.05 KB 10.01 KB (1%)

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #19150 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19150   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files         282      282           
  Lines        7622     7622           
  Branches     2143     2143           
=======================================
  Hits         7452     7452           
  Misses        170      170

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ffaeb8...d077b51. Read the comment docs.


## zh-CN

此演示用于调试 Menu 完整样式。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里贴个 demo 用途吧,不然其他人到时候都不知道该看什么。比如:

此 demo 需要注意查看 Dropdown 下部分 Menu 的样式是否正常
#19150

@shaodahong
Copy link
Member

/rebase

@shaodahong
Copy link
Member

@afc163 更新下 snapshot 就可以了

@afc163
Copy link
Member Author

afc163 commented Oct 12, 2019

不行,dist 的 snapshot 和其他环境不一样。

);

ReactDOM.render(
<Dropdown overlay={menu} visible>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个默认 visible 的模式下有问题

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加上 visible 会导致 snapshot 在 dist 模式下和其他模式不一致,非常奇怪。所有 trigger 组件都有这个问题。

cc @zombieJ

这里和本 PR 无关,我先把例子里的 visible 删了。

@afc163 afc163 force-pushed the fix-menu-style branch 3 times, most recently from 7f1b94f to 6c3a677 Compare October 15, 2019 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu.Items inside Menu.ItemGroup render with circles when used as a Dropdown overlay
3 participants