Skip to content

Commit

Permalink
fix(HeaderPanel): replace hardcoded prefix in CSS selector (#17422)
Browse files Browse the repository at this point in the history
Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
emyarod and tay1orjones committed Sep 13, 2024
1 parent 98ca47c commit 885a114
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/UIShell/HeaderPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const HeaderPanel: React.FC<HeaderPanelProps> = React.forwardRef(
eventHandlers.onBlur = (event) => {
if (
!event.currentTarget.contains(event.relatedTarget) &&
!lastClickedElement?.classList?.contains('cds--switcher__item-link')
!lastClickedElement?.classList?.contains(
`${prefix}--switcher__item-link`
)
) {
setExpandedState(false);
setLastClickedElement(null);
Expand Down

0 comments on commit 885a114

Please sign in to comment.