-
Notifications
You must be signed in to change notification settings - Fork 330
feat(nav-menu): [nav-menu] updata nav-menu xdesign #1849
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
WalkthroughThe recent updates to the navigation menu's styles and themes enhance both visual appeal and usability. Key improvements include the introduction of CSS variables for better maintainability, refined typography, and improved spacing for menu items and dropdowns. These changes aim to create a more interactive and responsive user experience, allowing for easy customization across different themes. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- packages/theme/src/nav-menu/index.less (6 hunks)
- packages/theme/src/nav-menu/smb-theme.js (1 hunks)
- packages/theme/src/nav-menu/vars.less (2 hunks)
Additional comments not posted (28)
packages/theme/src/nav-menu/smb-theme.js (19)
2-2: LGTM!The use of CSS variables for
ti-nav-menu-bg-colorenhances maintainability and flexibility.
3-3: LGTM!The use of CSS variables for
ti-nav-menu-item-text-colorenhances maintainability and flexibility.
4-4: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-text-colorenhances maintainability and flexibility.
5-5: LGTM!The use of CSS variables for
ti-nav-menu-item-hover-bg-colorenhances maintainability and flexibility.
6-6: LGTM!The use of CSS variables for
ti-nav-menu-item-text-font-weightenhances maintainability and flexibility.
7-7: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-selected-font-weightenhances maintainability and flexibility.
8-8: LGTM!The use of CSS variables for
ti-nav-menu-item-selected-underline-heightenhances maintainability and flexibility.
9-9: LGTM!The use of CSS variables for
ti-nav-menu-item-selected-underline-bg-colorenhances maintainability and flexibility.
10-10: LGTM!The use of CSS variables for
ti-nav-menu-submenu-group-margin-topenhances maintainability and flexibility.
11-11: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-node-item-padding-topenhances maintainability and flexibility.
12-12: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-node-item-padding-buttonenhances maintainability and flexibility.
13-13: LGTM!The use of CSS variables for
ti-nav-menu-submenu-padding-horizontalenhances maintainability and flexibility.
14-14: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-node-title-margin-bottomenhances maintainability and flexibility.
15-15: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-text-font-sizeenhances maintainability and flexibility.
16-16: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-more-item-hover-bg-colorenhances maintainability and flexibility.
17-17: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-more-item-active-bg-colorenhances maintainability and flexibility.
18-18: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-border-colorenhances maintainability and flexibility.
19-19: LGTM!The use of CSS variables for
ti-nav-menu-popmenu-box-shadowenhances maintainability and flexibility.
20-20: LGTM!The use of CSS variables for
ti-nav-menu-item-font-sizeenhances maintainability and flexibility.packages/theme/src/nav-menu/vars.less (7)
23-23: LGTM!The introduction of
--ti-nav-menu-item-text-font-weightenhances customization of text appearance.
87-87: LGTM!The introduction of
--ti-nav-menu-popmenu-text-font-sizeenhances customization of font size.
91-91: LGTM!The introduction of
--ti-nav-menu-submenu-group-margin-topenhances customization of spacing.
93-93: LGTM!The introduction of
--ti-nav-menu-popmenu-node-item-padding-topenhances customization of padding.
95-95: LGTM!The introduction of
--ti-nav-menu-popmenu-node-item-padding-buttonenhances customization of padding.
29-29: LGTM!The update to a unitless value for
--ti-nav-menu-item-selected-border-radiusensures consistency in different contexts.
31-31: LGTM!The update to a unitless value for
--ti-nav-menu-item-selected-position-bottomensures consistency in different contexts.packages/theme/src/nav-menu/index.less (2)
26-26: LGTM!The addition of
box-shadowenhances the visual presentation by providing a subtle depth effect.
91-91: LGTM!The change from padding to margin for span and anchor elements alters the spacing behavior appropriately.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- examples/sites/demos/pc/app/nav-menu/slot-logo-composition-api.vue (1 hunks)
- examples/sites/demos/pc/app/nav-menu/slot-logo.vue (1 hunks)
- packages/theme/src/nav-menu/index.less (8 hunks)
- packages/theme/src/nav-menu/smb-theme.js (1 hunks)
- packages/theme/src/nav-menu/vars.less (2 hunks)
Files skipped from review due to trivial changes (2)
- examples/sites/demos/pc/app/nav-menu/slot-logo-composition-api.vue
- examples/sites/demos/pc/app/nav-menu/slot-logo.vue
Files skipped from review as they are similar to previous changes (3)
- packages/theme/src/nav-menu/index.less
- packages/theme/src/nav-menu/smb-theme.js
- packages/theme/src/nav-menu/vars.less
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- packages/theme/src/nav-menu/smb-theme.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/theme/src/nav-menu/smb-theme.js
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Improvements
Bug Fixes