-
Notifications
You must be signed in to change notification settings - Fork 300
fix(textarea): Update the background color and related styles of the counter #3387
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 GitHub Actions workflow to recognize the 'textarea' subcomponent as part of the 'input' component for E2E testing. In the theme package, the styling of the textarea counter is revised by introducing a new background color variable, adjusting its right offset, and modifying its CSS properties for appearance. Minor formatting fixes were applied to base theme variables. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
WalkthroughThis PR updates the background color and related styles of the textarea counter in the Changes
|
padding-right: var(--tv-Textarea-count-padding-right); | ||
background-color: var(--tv-Textarea-count-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.
Ensure that the new background color variable --tv-Textarea-count-bg-color
is defined and used correctly across all relevant components to avoid any styling issues.
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
🧹 Nitpick comments (1)
packages/theme/src/textarea/index.less (1)
69-69
: Add border-radius to the counter element for consistency
You introduced a background color for the counter but removed the previousborder-bottom-left-radius
. The--tv-Textarea-count-border-radius
variable exists—apply it to the counter for consistent rounded corners:.@{input-prefix-cls}__count { padding-right: var(--tv-Textarea-count-padding-right); background-color: var(--tv-Textarea-count-bg-color); + border-radius: var(--tv-Textarea-count-border-radius); }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/test-e2e-pr.yml
(1 hunks)packages/theme/src/textarea/index.less
(1 hunks)packages/theme/src/textarea/vars.less
(2 hunks)
🔇 Additional comments (3)
packages/theme/src/textarea/vars.less (2)
46-47
: Introduce--tv-Textarea-count-bg-color
The new variable correctly defaults to the secondary background token, enabling customizable counter backgrounds.
57-57
: Increase the counter right offset
Updating--tv-Textarea-count-right
by 2px ensures proper positioning without relying on a fixed width..github/workflows/test-e2e-pr.yml (1)
109-110
:✅ Verification successful
Map
textarea
andsvgs
subcomponents for E2E detection
Adding'textarea': 'input'
ensures textarea changes trigger input tests. The'svgs': 'icon'
entry maps SVG asset updates to the icon component; please verify that the corresponding directories exist to match this mapping.
🏁 Script executed:
#!/bin/bash # Verify that the 'svgs' and 'textarea' directories exist under packages/theme/src for dir in svgs textarea; do if [ ! -d "packages/theme/src/$dir" ]; then echo "Directory $dir not found in packages/theme/src" && exit 1 fi done echo "Required directories exist"Length of output: 202
Verified subcomponent mappings for E2E detection
Thesvgs
andtextarea
directories exist underpackages/theme/src
, so the mappings in.github/workflows/test-e2e-pr.yml
are correct. No further changes needed.
fix(textarea): 更新计数器背景颜色和相关样式
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
Chores
Style
New Features