ant-design "Default" Button does not have a standalone hover color config for text and background.

kx1ctssn  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(35)

What problem does this feature solve?

The Button uses the same colorPrimaryHover config for both "primary" background and "default" text color. Can we have a separated config for default's hover background and text?

What does the proposed API look like?

  • defaultBgHover - for "default" Button background's color when hover. Value default to defaultBg if not specified.
  • defaultColorHover - for "default" Button text's color when hover. Value default to colorPrimaryHover if not specified.
  • defaultBorderColorHover - for "default" Button border's color when hover. Value default to defaultColorHover if not specified.
9gm1akwq

9gm1akwq1#

It would be great if "active" states could also be considered:

  • defaultBgActive - for "default" Button background's color when clicked. Value default to defaultBg if not specified.
  • defaultColorActive - for "default" Button text's color when clicked. Value default to colorPrimaryActive if not specified.
  • defaultBorderColorActive - for "default" Button border's color when clicked. Value default to colorPrimaryActive if not specified.

相关问题