Skip to content

[Bug]: Button styling adjustments (missing selected state, icon color, icon style) #25032

@redongreen

Description

@redongreen

Library

React Components / v9 (@fluentui/react-components)

System Info

https://fluentuipr.z22.web.core.windows.net/heads/master/public-docsite-v9/storybook/index.html?path=/docs/components-button-button--default#icon

Are you reporting Accessibility issue?

no

Reproduction

https://fluentuipr.z22.web.core.windows.net/heads/master/public-docsite-v9/storybook/index.html?path=/docs/components-button-button--default

Bug Description

1. Primary, secondary/default button variant icon change

Current: While hovered the icon changes from outlined -> filled. See hover behavior in codesandbox.
image

Expected: The primary and default/secondary button variant should not change from outlined to filled icon in hover, pressed, selected state.
image


2. Subtle variant icon color in hover, pressed, and selected states

Current: While in hovered, pressed, and selected state the icon is styled using neutral color.
image

Expected: While in hovered, pressed, and selected state the icon should be styled using brand accent color according to our design specs. Link to Subtle button spec.
image


3. Selected state missing from all menu button variants

Current: While the button is selected the styling of the button defaults to the rest state. The example below shows the default/secondary variant button, but this also applies to primary, subtle, outline, and transparent buttons.
image

Expected: While selected, the button should follow the styling provided by our specs. Link to spec, see token allocation under "Toggle press on" section.
image

Logs

https://fluentuipr.z22.web.core.windows.net/heads/master/public-docsite-v9/storybook/index.html?path=/docs/components-button-button--default

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions