Skip to content

Commit

Permalink
Keep breadcrumb highlighted when popover active
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 7, 2023
1 parent 0f1a2c5 commit 6a7af16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@

&.Breadcrumbs3000__breadcrumb--actionable {
cursor: pointer;
&:hover > span {
&:hover > span,
&.Breadcrumbs3000__breadcrumb--open > span {
opacity: 1;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function Breadcrumbs(): JSX.Element | null {
<div
className="Breadcrumbs3000"
style={

Check warning on line 38 in frontend/src/layout/navigation-3000/components/Breadcrumbs.tsx

View workflow job for this annotation

GitHub Actions / Code quality checks

style should be avoided in favor of utility CSS classes - see https://storybook.posthog.net/?path=/docs/lemon-ui-utilities--overview
// eslint-disable-line react/forbid-dom-props
{
'--breadcrumbs-compaction-rate': compactionRate,
} as React.CSSProperties
Expand Down Expand Up @@ -78,6 +79,7 @@ function Breadcrumb({ breadcrumb, index, here }: BreadcrumbProps): JSX.Element {
<Component
className={clsx(
'Breadcrumbs3000__breadcrumb',
popoverShown && 'Breadcrumbs3000__breadcrumb--open',
(breadcrumb.path || breadcrumb.popover) && 'Breadcrumbs3000__breadcrumb--actionable',
here && 'Breadcrumbs3000__breadcrumb--here'
)}
Expand Down

0 comments on commit 6a7af16

Please sign in to comment.