8000 chore(Badge/MenuToggle): updated implementation of badge toggle by thatblindgeye · Pull Request #6430 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

chore(Badge/MenuToggle): updated implementation of badge toggle#6430

Merged
mcoker merged 3 commits intopatternfly:v6from
thatblindgeye:iss6407_badgeToggle
Mar 26, 2024
Merged

chore(Badge/MenuToggle): updated implementation of badge toggle#6430
mcoker merged 3 commits intopatternfly:v6from
thatblindgeye:iss6407_badgeToggle

Conversation

@thatblindgeye
Copy link
Contributor

Closes #6407

{{> breadcrumb-item-divider}}
{{#> breadcrumb-dropdown}}
{{> dropdown dropdown--id="dropdown-badge-toggle" dropdown--template--Breadcrumb="true" dropdown--IsExpanded="true"}}
{{#> menu-toggle menu-toggle--IsPlain=true}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This example would still need to have Menu added in to fully replace the deprecated dropdown, but for now this resolves updating the example to show using our recommended badge toggle implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Per discussion off GH, we won't need to add a Menu to this example.

@patternfly-build
Copy link
Collaborator
patternfly-build commented Mar 18, 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.

LGTM though I suspect we'll need to address the styling. Doesn't have to be part of this PR though. I'm curious what @andrew-ronaldson and @lboehling think.

Some things worth noting

  • The menu toggle has a small variation that may work better?
  • We should make sure the height of the breadcrumb doesn't change depending on whether there is a menu toggle in it or not (it changes currently)
  • The toggle icon font-size is larger than the breadcrumb and badge text

@andrew-ronaldson
Copy link
Collaborator

I agree about that the height shouldn't change in breadcrumbs.
I noticed the spacing on this seems a bit large between the badge and the icon. Also I think there should be a spacer-sm betweent the > dividers so the hover state of menu toggle isn't touching the dividers

Screenshot 2024-03-18 at 12 07 09 PM

@mcoker mcoker mentioned this pull request Mar 20, 2024
@mcoker
Copy link
Contributor
mcoker commented Mar 20, 2024

@andrew-ronaldson we have a breadcrumb issue to look at some things and I added a note about the spacing around the dividers #6097

For the menu toggle, maybe we can look at this spacing. This is effectively a plain text menu toggle (@thatblindgeye I think we should use that variant instead of the plain - wdyt?) and here's how that spacing is created. There is a space between the "text" and the toggle icon, then there is a bunch of space around the toggle icon to effectively maintain some sort of minimum width. For this toggle, how would you expect the spacing to look like? IMO this should be a follow-up, and we should at least review the way we're creating that spacing, I think the way it is will not create the spacing in figma.

@thatblindgeye thatblindgeye linked an issue Mar 25, 2024 that may be closed by this pull request
@thatblindgeye
Copy link
Contributor Author

Opened #6463 as a followup

@mcoker mcoker merged commit 7ec8d77 into patternfly:v6 Mar 26, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.108 🎉

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.

[Badge] - Remove badge with toggle variant

4 participants

0