Skip to content

[Bug]: HeaderPanel focus listener uses hardcoded CSS prefix #16908

Closed
@JPM72

Description

@JPM72

Package

@carbon/react, @carbon/styles

Browser

Chrome

Package version

1.58.0

React version

18.3.1

Description

As the title says.
packages/react/src/components/UIShell/HeaderPanel.tsx
Line 93.
!lastClickedElement?.classList?.contains('cds--switcher__item-link')

This will obviously break functionality if a non-default CSS prefix is used.

Reproduction/example

N/A

Steps to reproduce

N/A

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions