8000 chore(Badge/MenuToggle): updated styling by thatblindgeye · Pull Request #6543 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

chore(Badge/MenuToggle): updated styling#6543

Merged
mcoker merged 6 commits intopatternfly:v6from
thatblindgeye:iss6463_badgeToggleStyling
Jun 3, 2024
Merged

chore(Badge/MenuToggle): updated styling#6543
mcoker merged 6 commits intopatternfly:v6from
thatblindgeye:iss6463_badgeToggleStyling

Conversation

@thatblindgeye
Copy link
Contributor
@thatblindgeye thatblindgeye commented Apr 16, 2024

Closes #6463

Currently I'm applying some additional styling to a pf-m-small MenuToggle rather than only when it's inside a breadcrumb dropdown. I can update to only change that styling when the MenuToggle is inside the breadcrumb dropdown, but was curious if it would make sense to adjust other styling for a pf-m-small Menu Toggle rather than only the top/bottom padding.

Also note that the pf-m-text modifier on MenuToggle no longer actually does anything, but we've kept it on the React component.

@patternfly-build
Copy link
Collaborator
patternfly-build commented Apr 16, 2024

@andrew-ronaldson
Copy link
Collaborator

The menu toggle example looks good here
Screenshot 2024-04-30 at 12 52 48 PM

The breadcrumb example crops the hover/focus states to fit
Screenshot 2024-04-30 at 12 53 44 PM

is this caused by the breadcrumbs height?

@thatblindgeye
Copy link
Contributor Author

@andrew-ronaldson that's from setting the padding top/bottom on the MenuToggle in that particular instance to 0 to try and get it closer to being contained in the outer breadcrumb element. I can remove those style overrides which would result in the following:

image
image

@thatblindgeye thatblindgeye force-pushed the iss6463_badgeToggleStyling branch from 9d332ba to db10778 Compare May 1, 2024 19:23
@andrew-ronaldson
Copy link
Collaborator

Seems like the breadcrumbs version now butts up against the dividers. Think it needs an xs spacer for margin start/end
Screenshot 2024-05-14 at 10 13 00 AM

@thatblindgeye
Copy link
Contributor Author

@andrew-ronaldson Does this look more inline with what we'd want?

image

I updated the --#{$breadcrumb}__dropdown--MarginInline[Start|End] var to an xs spacer, instead of it creating a negative margin based on calc(var(--#{$breadcrumb}__item--MarginInlineEnd) * -1)

@andrew-ronaldson
Copy link
Collaborator

Looks good with that update @thatblindgeye

Copy link
Collaborator
@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

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

looks dope!

@thatblindgeye thatblindgeye force-pushed the iss6463_badgeToggleStyling branch from db10778 to aa1677a Compare May 14, 2024 17:31
@thatblindgeye thatblindgeye force-pushed the iss6463_badgeToggleStyling branch from b544e3c to 9387453 Compare May 28, 2024 12:40
Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

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

🏅 Looks good to me.

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.

Just one small nit!

Comment on lines 120 to 124
.#{$menu-toggle} {
padding-block-start: var(--#{$breadcrumb}__menu-toggle--PaddingBlockStart);
padding-block-end: var(--#{$breadcrumb}__menu-toggle--PaddingBlockEnd);
line-height: var(--#{$breadcrumb}__menu-toggle--c-menu-toggle--LineHeight);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

discussed in the working section that we can keep the padding as long as it it doesn't change the shape of the outer breadcrumb box. also looks like line-height is the same with or without this declaration, so I think we can nix this whole block!

@patternfly-build
Copy link
Collaborator

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

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.

Penta Badge/Menu Toggle - update styling when only badge is passed to Menu toggle

5 participants

0