8000 fix(menu toggle): correct spacing for split menu-toggle__toggle-icon that contains svg for icon by sg00dwin · Pull Request #7213 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(menu toggle): correct spacing for split menu-toggle__toggle-icon that contains svg for icon#7213

Merged
mcoker merged 1 commit intopatternfly:mainfrom
sg00dwin:7137-menu-toggle
Nov 13, 2024
Merged

fix(menu toggle): correct spacing for split menu-toggle__toggle-icon that contains svg for icon#7213
mcoker merged 1 commit intopatternfly:mainfrom
sg00dwin:7137-menu-toggle

Conversation

@sg00dwin
Copy link
Contributor
@sg00dwin sg00dwin commented Nov 12, 2024

Fixes #7137
The react MenuToggle component uses an <svg> for the menu toggle icon, instead of an <i> used by core.
Removing display: flex from pf-v6-c-menu-toggle__toggle-icon because it causes a bug where the svg CaretDownIcon is misaligned with the text and the button height to grow taller.

Before and after
Screenshot 2024-11-12 at 1 42 43 PM

https://patternfly-pr-7213.surge.sh/components/menus/menu-toggle#split-toggle

@patternfly-build
Copy link
Collaborator
patternfly-build commented Nov 12, 2024

Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LPTM! Also love the simplicity of this change. Sometimes these alignment issues turn into huge changesets with lots of sweeping changes. I really appreciate narrowing this down to a straight forward, easy fix 👍

@mcoker
Copy link
Contributor
mcoker commented Nov 13, 2024

Also meant to mention that I ran backstop and all is good. Also made this change in the react verified it fixes the issue we raised.

@mcoker mcoker merged commit 5e4cef6 into patternfly:main Nov 13, 2024
@sg00dwin sg00dwin deleted the 7137-menu-toggle branch November 13, 2024 19:21
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.1.0-prerelease.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu toggle - split button alignment issues with SVGs

4 participants

0