Skip to content

[Bug]: icon buttons display 'active' grey background color on focus #22980

Description

@csalter

Package

@carbon/react

Browser

Chrome

Package version

v11

React version

v17.0.2

Description

A ghost button with a renderIcon property displays a grey background on focus. It's expected that the grey background is only shown when the button is active (see screenshot below). This issue seems to have been introduced by this commit .

Image

Reproduction/example

https://stackblitz.com/edit/github-xhdttodv?file=src%2FApp.jsx

Steps to reproduce

  • tab to the ghost button via keyboard and notice that its background goes gray (we'd expect the blue outline but not the 'active' background)

Suggested Severity

Medium (Severity 3) = User can complete task, and/or has a workaround within the user experience of a given component.

Project name

Watson Orchestrate

Code of Conduct

Metadata

Metadata

Assignees

Type

Fields

Severity

Medium

Projects

Status
🚦 In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions