Skip to content

feat(menu-toggle): add high-contrast border - #7723

Merged
mcoker merged 3 commits into
patternfly:high-contrast-q3from
srambach:7620-menu-toggle-hi-c
Aug 20, 2025
Merged

mcoker merged 3 commits into
patternfly:high-contrast-q3from
srambach:7620-menu-toggle-hi-c

Conversation

@srambach

@srambach srambach commented Aug 5, 2025

Copy link
Copy Markdown
Member

Fixes #7620

Uses existing pseudoelement to add borders for plain variant.

@lboehling One question - this exposed the difference in padding for the Count variant - just want to make sure this is correct?
image

@srambach
srambach requested review from lboehling and mcoker August 5, 2025 13:13
@patternfly-build

patternfly-build commented Aug 5, 2025 •

Copy link
Copy Markdown
Collaborator

@srambach srambach linked an issue Aug 5, 2025 that may be closed by this pull request
@lboehling

Copy link
Copy Markdown

@lboehling One question - this exposed the difference in padding for the Count variant - just want to make sure this is correct? image

I think this is fine @srambach

--#{$menu-toggle}--m-plain--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
--#{$menu-toggle}--m-plain--BorderColor: transparent;
--#{$menu-toggle}--m-plain--BorderColor: var(--pf-t--global--border--color--high-contrast);
--#{$menu-toggle}--m-plain--BorderWidth: var(--pf-t--global--high-contrast--border--width--action--default);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

we just added in new border width tokens for --pf-t--global--border--width--action--plain--default/hover/clicked that can be used here instead. this will remove the border on the default state of the plain menu toggle

@lboehling lboehling Aug 14, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The new border width tokens for HC theme also adjust the border--width--control--hover value as well, so the hover states on the default menu toggles will also increase by a pixel on hover. No action needed on this i believe as long as those tokens are already applied, think we just need those new tokens pulled in to see that change.

@srambach
srambach force-pushed the 7620-menu-toggle-hi-c branch from d9377d3 to 459b421 Compare August 15, 2025 15:17
@srambach
srambach requested a review from lboehling August 18, 2025 14:03
--#{$menu-toggle}--m-plain--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
--#{$menu-toggle}--m-plain--BorderColor: transparent;
--#{$menu-toggle}--m-plain--BorderColor: var(--pf-t--global--border--color--high-contrast);
--#{$menu-toggle}--m-plain--BorderWidth: var(--pf-t--global--border--width--action--default);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

small nit -- but adding action--plain--[default/hover/clicked] will give the correct styles here for the plain menu toggles!

@srambach
srambach requested a review from lboehling August 20, 2025 19:16

@lboehling lboehling left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lovely!

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

L🦦TM!

@mcoker
mcoker merged commit 81cfdd9 into patternfly:high-contrast-q3 Aug 20, 2025
4 checks passed
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.

High contrast borders - Menu toggle

4 participants