tdesign-react-starter
tdesign-react-starter copied to clipboard
fix(style): itemContainer margin overridden in production
What
Fixes an issue where the itemContainer's margin-top style was overridden by .t-form default styles in production builds.
Why
In production, due to CSS load order and specificity, .t-form applies a default margin-top that overrides custom styles set in itemContainer, leading to incorrect layout spacing.
How
Increased the specificity of the selector using :global(.t-form).itemContainer in index.module.less to ensure the intended margin-top is applied.
Notes
- This change only affects styling on the login page.
- No functional logic or layout structure was modified.