Skip to content

feat(Toolbar,OverflowMenu): add support for responsive height - #8295

Merged
mcoker merged 5 commits into
patternfly:mainfrom
kmcfaul:8031-resp-height
Apr 13, 2026
Merged

feat(Toolbar,OverflowMenu): add support for responsive height#8295
mcoker merged 5 commits into
patternfly:mainfrom
kmcfaul:8031-resp-height

Conversation

@kmcfaul

@kmcfaul kmcfaul commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Closes #8031

  • Updates the hidden-visible mixin to optionally create height breakpoints
  • Opts Toolbar into the height breakpoints
  • Adds vertical variant to OverflowMenu
  • Adds row-gap to OverflowMenu

Summary by CodeRabbit

  • New Features

    • Vertical layout support for overflow menus with a vertical modifier, improved vertical spacing, and vertical-specific spacing variables.
    • Height-based visibility breakpoints for toolbar items/groups to enable responsive hide/show by viewport height.
  • Documentation

    • Added a vertical overflow menu example.
    • Added a vertical toolbar example demonstrating height-based visibility controls.

@coderabbitai

coderabbitai Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: c70f519e-885d-42e4-bf10-d4a344850620

📥 Commits

Reviewing files that changed from the base of the PR and between 2d140f4 and 4877145.

📒 Files selected for processing (1)
  • src/patternfly/components/OverflowMenu/examples/overflow-menu.md

Walkthrough

Adds a vertical OverflowMenu modifier (.pf-m-vertical) with row-gap custom properties and example/docs updates; extends pf-v6-hidden-visible mixin to optionally emit height-based visibility rules and updates Toolbar to enable height breakpoints for content, groups, and items.

Changes

Cohort / File(s) Summary
Overflow Menu examples CSS
src/patternfly/components/OverflowMenu/examples/overflow-menu.css
Extended dashed/padded and group-item padding/border removal selectors to include vertical overflow-menu variant (#ws-core-c-overflow-menu-vertical).
Overflow Menu docs & core SCSS
src/patternfly/components/OverflowMenu/examples/overflow-menu.md, src/patternfly/components/OverflowMenu/overflow-menu.scss
Added a “Vertical” example (beta) and introduced .pf-m-vertical plus new row-gap CSS custom properties applied to container, content, groups, items, and specific button-group variants.
Toolbar docs & SCSS
src/patternfly/components/Toolbar/examples/Toolbar.md, src/patternfly/components/Toolbar/toolbar.scss
Documented height-based visibility modifiers and enabled height-breakpoint rule generation by passing $ifIncludeHeight: true to pf-v6-hidden-visible for toolbar content, groups, and items; added vertical toolbar example using height visibility classes.
Sass utilities mixin
src/patternfly/sass-utilities/mixins.scss
Updated @mixin pf-v6-hidden-visible($val: "block", $ifIncludeHeight: false) to accept $ifIncludeHeight and, when true, emit min-height media-query rules for .pf-m-hidden-on-*-height / .pf-m-visible-on-*-height.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • chore: updates to support dart sass 3.0.0 #8048 — Modifies src/patternfly/sass-utilities/mixins.scss (related changes to the same mixin and its behavior).
  • #8031 — Issue requesting height-based visibility for toolbar actions; this PR implements height breakpoint support that addresses that objective.

Suggested labels

released on @prerelease``

Suggested reviewers

  • jcmill
  • srambach
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title follows conventional commit format with type 'feat', scopes 'Toolbar,OverflowMenu', and a clear description of adding responsive height support.
Linked Issues check ✅ Passed The PR fully implements the requirements from issue #8031: updated hidden-visible mixin for height breakpoints, opted Toolbar into height breakpoints, added vertical variant to OverflowMenu, and added row-gap styling.
Out of Scope Changes check ✅ Passed All changes are within scope of issue #8031, covering height-based responsive visibility for Toolbar, vertical OverflowMenu support, and foundational mixin updates for height media queries.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@patternfly-build

patternfly-build commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
src/patternfly/components/OverflowMenu/examples/overflow-menu.md (1)

48-71: Document pf-m-vertical in the usage tables as well.

Nice addition of the vertical example. Please also add a .pf-m-vertical row to the “Usage” table (and/or relevant modifier table) so the new public modifier is discoverable without reading examples.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/patternfly/components/OverflowMenu/examples/overflow-menu.md` around
lines 48 - 71, Add documentation for the new public modifier .pf-m-vertical to
the component's Usage/Modifiers table so it is discoverable outside examples:
update the OverflowMenu usage/modifier table to include a new row for
.pf-m-vertical (describe it as "vertical layout" or similar) and reference the
modifier in the table alongside existing modifiers for OverflowMenu so consumers
can find the pf-m-vertical flag without reading the example.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/patternfly/components/OverflowMenu/examples/overflow-menu.md`:
- Around line 48-71: Add documentation for the new public modifier
.pf-m-vertical to the component's Usage/Modifiers table so it is discoverable
outside examples: update the OverflowMenu usage/modifier table to include a new
row for .pf-m-vertical (describe it as "vertical layout" or similar) and
reference the modifier in the table alongside existing modifiers for
OverflowMenu so consumers can find the pf-m-vertical flag without reading the
example.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 042e1eed-185e-4d72-8a60-ed201acd835b

📥 Commits

Reviewing files that changed from the base of the PR and between deaddd1 and ca893b0.

📒 Files selected for processing (6)
  • src/patternfly/components/OverflowMenu/examples/overflow-menu.css
  • src/patternfly/components/OverflowMenu/examples/overflow-menu.md
  • src/patternfly/components/OverflowMenu/overflow-menu.scss
  • src/patternfly/components/Toolbar/examples/Toolbar.md
  • src/patternfly/components/Toolbar/toolbar.scss
  • src/patternfly/sass-utilities/mixins.scss

@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.

LGTM just one small docs update

Comment thread src/patternfly/components/Toolbar/examples/Toolbar.md Outdated

@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.

🚀

@mcoker

mcoker commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

@kmcfaul oops forgot one spot - can you document .pf-m-vertical as the first modifier in this table here - https://github.com/kmcfaul/patternfly/blob/b93f2a10a7e42b572bbe96d75b1eacce0db7fdb0/src/patternfly/components/OverflowMenu/examples/overflow-menu.md?plain=1#L253

Modifiers are usually grouped by the elements they apply to so .pf-m-vertical should be first since it applies to .pf-v6-c-overflow-menu and the others apply to __group

@kmcfaul

kmcfaul commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

Updated, LMK if the wording sounds good to you

@mcoker
mcoker merged commit 11e02ee into patternfly:main Apr 13, 2026
5 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.5.0-prerelease.68 🎉

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.

Ability to hide/show actions responsively based on browser height

3 participants