-
Notifications
You must be signed in to change notification settings - Fork 330
fix: fixed the background color of the official website API table expansion #2962
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 changes update the grid styling by removing a fixed background color in a Vue component and by replacing a hardcoded color with a CSS variable in a LESS file. The Vue component no longer forces a background color for expanded grid cells, while the table component now supports dynamic theming via a CSS variable. Changes
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
变更概述修复了官网 API 表格展开时的背景色问题。此更改涉及到样式文件的调整,确保背景色使用主题变量而不是硬编码的颜色值。 变更内容
|
| background-color: #fafafa; | ||
| } | ||
| :deep(code) { |
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.
The removal of the background color for .tiny-grid-body__expanded-cell might affect the visual consistency. Ensure that the new theme variable adequately replaces this styling.
| font-size: var(--tv-Grid-font-size); | ||
| color: var(--tv-Grid-text-color); | ||
| background-color: #fff; | ||
| background-color: var(--tv-Grid-bg-color); |
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.
Changing the background color to a theme variable improves maintainability. Ensure that --tv-Grid-bg-color is defined and provides the desired appearance across all themes.
Change OverviewFixed the background color issue when expanding the official website API table. This change involves tuning of the style file, ensuring that the background color uses theme variables instead of hard-coded color values. Change content
|
|
[e2e-test-warn] The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug". Please make sure you've read our contributing guide |
修复官网api表格展开背景色

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