Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix mismatched new/deprecated dropdown components in KebabDropdown #1126

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

mturley
Copy link
Collaborator

@mturley mturley commented Jul 12, 2023

Fixes #1125

We were using the old Dropdown component from @patternfly/react-core/deprecated with the new DropdownItem component from @patternfly/react-core. This change upgrades our shared KebabDropdown to use the new PF5 Dropdown structure.

Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
@mturley mturley merged commit e35086b into konveyor:main Jul 12, 2023
6 checks passed
@mturley mturley deleted the 1125-fix-kebab-dropdown-styles branch July 12, 2023 19:08
mturley added a commit to mturley/tackle2-ui that referenced this pull request Jul 17, 2023
mturley added a commit to mturley/tackle2-ui that referenced this pull request Jul 17, 2023
…babDropdown (konveyor#1126)"

This reverts commit e35086b.

Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
gildub pushed a commit that referenced this pull request Jul 17, 2023
…ecated `DropdownItems`, use `isAriaDisabled` prop for items with tooltips (#1150)

Fixes a regression caused by #1126 where dropdown items that are
disabled with tooltips could not trigger the tooltips. Discovered by
@gildub when working on #1149.

It appears the `isAriaDisabled` prop which we need for retaining the
mouse hover event on a disabled DropdownItem is not present in the new
PF5 DropdownItem. This is due to missing styles in PF core that are
still being addressed (see
patternfly/patternfly#5528,
patternfly/patternfly#5692, and related comment
here:
patternfly/patternfly-react#8992 (comment))

Until `isAriaDisabled` is supported in the new PF5 DropdownItem we must
restore the usage of the deprecated component for these tooltips to
work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PF5 Regression] - Need to fix the dropdown styles that are missing
2 participants