-
Notifications
You must be signed in to change notification settings - Fork 330
fix(radio): [radio] resolve the issue of text wrapping not being centered in radio components #2884
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -28,7 +28,7 @@ export const classes = { | |||||||||||||
| 'mobile-icon-radio-disabled': | ||||||||||||||
| '[&_path:nth-of-type(2)]:fill-color-icon-disabled [&_path:nth-of-type(1)]:fill-color-bg-3 cursor-not-allowed', | ||||||||||||||
| 'radio-input': 'absolute left-0 right-0 top-0 bottom-0 w-0 h-0 -z-10 opacity-0', | ||||||||||||||
| 'radio-text-common': 'sm:h-4 text-center text-color-text-primary align-middle text-sm', | ||||||||||||||
| 'radio-text-common': 'sm:h-4 text-color-text-primary align-middle text-sm', | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify if removing The PR aims to fix text wrapping not being centered, but removing the Could you please:
🌐 Web query: 💡 Result: In CSS, Horizontal vs. Vertical Alignment
Key Differences
Important Notes
Citations:
Review the horizontal centering of the radio text alignment The removal of the |
||||||||||||||
| 'radio-text-size-common': 'sm:text-xs', | ||||||||||||||
| 'radio-text-size-medium': 'sm:text-sm', | ||||||||||||||
| 'radio-hover': 'sm:[&_path:nth-of-type(1)]:hover:fill-color-brand-hover', | ||||||||||||||
|
|
||||||||||||||
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 'text-center' from 'radio-text-common' class may affect the text alignment in other components using this class. Please ensure that this change does not introduce any unintended side effects in other parts of the application.