-
-
Notifications
You must be signed in to change notification settings - Fork 53.5k
fix: submenu should also follow Menu's style #50626
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
Conversation
Signed-off-by: Xiang Shi <realkevin@tutanota.com>
|
原始问题描述一下先? |
ci 挂了 |
Warning Rate limit exceeded@afc163 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 40 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Ping,看看 ci 报错的问题。 |
@@ -72,6 +74,7 @@ const SubMenu: React.FC<SubMenuProps> = (props) => { | |||
popupClassName, | |||
`${prefixCls}-${customTheme || contextTheme}`, | |||
)} | |||
style={{ ...menu?.style, ...style }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
实际上还是会有一些场景,menu 和 subMenu 样式不一样。 v6 会通过语义化去解决。 当前这么做很容易造成样式污染,就先关了,欢迎 reopen 或 继续讨论。
<Menu
classNames={{
subMenu: {
itemTitle: 'my-classname'
}
}}
styles={{
subMenu: {
itemTitle: {
color: 'red'
}
}
}}
/>
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
There is no option for setting SubMenu item's hover, selected colour. So I guess it should follow the
Menu
one? And thestyle
is not used in current codebase.📝 Change Log