Skip to content

Since v4.4.0, dropdown-item with "active" class without href attribute have black text on hover #30726

@caseyjhol

Description

@caseyjhol

Windows 10: Chrome, Firefox, IE, Edge

Bootstrap v4.4.1 test case: https://codepen.io/caseyjhol/pen/ExVoYGg

  1. Click button
  2. Hover over active item
  3. Text is black

Bootstrap v4.3.1 test case: https://codepen.io/caseyjhol/pen/bGVabzZ

  1. Click button
  2. Hover over active item
  3. Text is white

Caused by commit 970c417 (#29140). Obviously a button element could be used instead, but it would potentially require changing a lot of markup, and any existing a styling would also have to be applied to button. An empty href tag could also be used, but that's technically invalid HTML. Perhaps an exception for links with the dropdown-item class could be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions