Skip to content

Bug - Menus (dropdown, menutoggle, etc.) - first menu item in a dropdown has a highlight by default (and it shouldn't) #10393

@garrett

Description

@garrett

Describe the problem
This is an issue with

  • Patternfly 5

[?] Patternfly 6

Please give a clear and concise description of the problem. Which components are affected?

When clicking on a dropdown or menutoggle, the first item in a menu is already selected.

How do you reproduce the problem?

Open any dropdown, menutoggle, or other menu-based component and look at the first menu item. It looks like it's being hovered, but it isn't. This affects all the new menus on the PatternFly website as well.

Expected behavior

An item that isn't hovered or focused shouldn't look hovered or focused.

Is this issue blocking you?

We had this as part of a blocker for our release, as it's a regression from the previous (now deprecated) dropdowns and we recently ported to the new ones.

Screenshots

From PatternFly's website:

image

image

image

image

image

This affects Chrome too:

image

And also WebKit:

image

What is your environment?

  • OS: Fedora Linux 40
  • Browser: Firefox 125.0.1, Chromium 124.0.6367.60, GNOME Web 46 (WebKitGTK 2.44.1, basically Safari 17 on Linux)

What is your product and what release date are you targeting?

Cockpit. Yesterday was the release. We're unfortunately now shipping with this bug, as we cannot indefinitely postpone the release to wait on a fix in a PatternFly release. ☹️

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions