tdesign-react-starter icon indicating copy to clipboard operation
tdesign-react-starter copied to clipboard

fix(style): itemContainer margin overridden in production

Open Bian-Zhuang opened this issue 8 months ago • 1 comments

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.

Bian-Zhuang avatar Jun 17 '25 09:06 Bian-Zhuang