Files
ant-design/components
二货爱吃白萝卜 bbb0683ab6 fix(button): add theme-aware preset color hover/active tokens (#56872)
* fix(button): add theme-aware preset color hover/active tokens

Add ${colorKey}Hover and ${colorKey}Active tokens that swap values based on dark/light mode for improved contrast and user experience.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add preset color hover/active tokens for consistent button interaction

- Add xxxHover and xxxActive tokens for preset colors in genColorMapToken
- Override these tokens in dark mode to swap hover/active values
- Update ButtonToken type to include PresetColorHoverActiveMap
- Update button variant styles to use new hover/active tokens
- Fix #56656: button hover/active state inconsistency in dark mode

* test: add @csstools to compileModules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test: support .mjs files in Jest configuration

- Updated .jest.js transform pattern to include .mjs files
- Simplified .jest.node.js transform patterns
- Added jest-mjs-transformer.js for babel-jest mjs handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test: remove unused jest-mjs-transformer.js

- Removed jest-mjs-transformer.js as it's no longer used
- .mjs files are now handled by the updated transform patterns in Jest configs

* test: add .mjs support to .jest.image.js

- Updated .jest.image.js transform pattern to include .mjs files
- fixes image test failures due to ES module parsing errors

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 11:10:41 +08:00
..
2025-11-18 15:05:06 +08:00
2025-12-25 12:17:44 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-27 17:24:56 +08:00
2026-01-27 17:24:56 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-19 22:10:33 +08:00
2026-01-26 18:15:37 +08:00
2026-01-19 22:10:33 +08:00
2026-01-13 11:58:06 +08:00