You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS classes exist twice: with and without antd-prefix #121
This demonstrates that the mll-ant prefix works (mll-ant-btn applies), but it doesn't prevent the generation of the default classes (like ant-btn) -> ant-btn and mll-ant-btn-Styles exist
Expectation:
With a prefix being defined in antd.less, only classes with this prefix should be generated and being injected with this library.
The unprefixed classes came from Grid and DatePicker. They imported antd's per-component styles (antd/es/grid/style/index and antd/es/date-picker/style/index), and those compiled without the @ant-prefix: mll-ant of src/antd.less. Both imports are gone, so esm/index.css and Storybook now carry only mll-ant- rules. The exceptions are six selectors that antd/dist/antd.less hardcodes itself: .ant-divider-inner-text and .ant-motion-collapse*.
Activity
spawnia commentedon Oct 30, 2026
Fixed in 21.0.1 by #338.
The unprefixed classes came from
GridandDatePicker. They imported antd's per-component styles (antd/es/grid/style/indexandantd/es/date-picker/style/index), and those compiled without the@ant-prefix: mll-antofsrc/antd.less. Both imports are gone, soesm/index.cssand Storybook now carry onlymll-ant-rules. The exceptions are six selectors thatantd/dist/antd.lesshardcodes itself:.ant-divider-inner-textand.ant-motion-collapse*.