fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Icon button doesn't theme color

Open phkuo opened this issue 8 years ago • 9 comments

Are you willing to submit a PR to fix? Yes, but not anytime soon since I'm on call

Requested priority: High

Products/sites affected: SP

Describe the issue:

The IconButton does not declare a color. Because it is a <button> element, it doesn't inherit the font color automatically and uses the browser's default styles. In dark themes, this makes it nearly invisible since it's black on black.

phkuo avatar Aug 11 '18 00:08 phkuo

@phkuo Would the proposal then be to add a semanticColor for ... iconButtonIcon ? Or, should the icon button use the button text color?

dzearing avatar Aug 13 '18 15:08 dzearing

I would think button text color. Adding a new color seems unnecessary.

betrue-final-final avatar Aug 13 '18 15:08 betrue-final-final

@dzearing I left out a very important word: "Because it is a BUTTON element...." @dzearing @betrue-final-final It must not use the buttonText slot, because it is a clickable icon that appears on bodyBackground, instead of on a buttonBackground. It should use link or actionLink or bodyText. I think actionLink makes sense here?

phkuo avatar Aug 13 '18 17:08 phkuo

Right...is action link blue on rest? I think that Outlook consumes this and would expect that?

betrue-final-final avatar Aug 13 '18 19:08 betrue-final-final

What does "on reset" mean? Action link is the neutral colored one, it is never blue. IIRC it starts neutralPrimary and goes black on hover? Do we need an icon button that switches between that and normal link colors (shades of theme)? From a scenario perspective, I'm seeing this break in the 'back' arrow button on panels.

phkuo avatar Aug 13 '18 20:08 phkuo

Rest! As in "normal", or "active". Not sure we want it to bounce between neutral and theme.

betrue-final-final avatar Aug 13 '18 20:08 betrue-final-final

Oops, I see.

link is themePrimary on rest, slightly darker on hover. actionLink is neutralPrimary on rest, slightly darker on hover. Both consistently stay within their color space.

phkuo avatar Aug 13 '18 20:08 phkuo

:tada:This issue was addressed in #6516, which has now been successfully released as [email protected].:tada:

Handy Links:

msft-github-bot avatar Oct 01 '18 11:10 msft-github-bot

:tada:This issue was addressed in #6511, which has now been successfully released as [email protected].:tada:

Handy Links:

msft-github-bot avatar Oct 11 '18 23:10 msft-github-bot