Skip to content

fix(table): style the responsive filter toggle as a button - #2139

Merged
markdumay merged 2 commits into
mainfrom
fix/filter-dropdown-toggle
Aug 24, 2026
Merged

fix(table): style the responsive filter toggle as a button#2139
markdumay merged 2 commits into
mainfrom
fix/filter-dropdown-toggle

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Summary

Styles the filter-responsive dropdown toggle as a button, so it reads as the control it replaces.

The problem

Below the breakpoint the filter's row of btn btn-outline-primary buttons is replaced by a dropdown — but the toggle inherited panel-dropdown's nav treatment: link-body-emphasis border-0 bg-transparent p-0.

That is right for a nav's section menu, where the toggle sits among prose. On a filter it renders the active category as a bare word in body text, 32×24px, exactly where a row of buttons used to be. Nothing about it indicates a control, or that it opens. Reported as "I can't use the dropdown selector" — the mechanism worked; the affordance did not.

The change

panel-dropdown takes a toggleClass for the toggle's appearance, defaulting to today's borderless treatment so nav output is unchanged. The table passes the button classes it stands in for.

dropdown-toggle is now emitted by the partial rather than left to the caller — it draws the caret and Bootstrap keys its dropdown JavaScript off it, so a caller that omitted it would get a control that neither indicates nor opens. The only effect on existing output is class order.

Before After
Toggle classes link-body-emphasis dropdown-toggle border-0 bg-transparent p-0 dropdown-toggle btn btn-outline-primary
Size 32 × 24 57 × 38
Padding / border 0 / none 6px 12px / 1px

Testing

Built and driven at 390px against the example site:

  • Toggle renders as an outline button matching the group it replaces; menu opens and every sampled point inside it hit-tests to a .dropdown-item, so it is genuinely painted and clickable.
  • Nav regressionid-demo still emits link-body-emphasis border-0 bg-transparent p-0, the same classes as before, reordered only. Section menus are visually unchanged.

pnpm lint and pnpm test:templates pass.

Note

This does not change alignment. A filter row whose block sets justify: center still centres the dropdown, because the section centres a shrink-wrapped row — that is a site-level layout choice rather than something the partial should override, and infusal.io handles it locally.

Below the breakpoint `filter-responsive` replaces a row of outline buttons with a
dropdown, but the toggle inherited the nav's borderless treatment: no border, no
background, no padding. Where a group of buttons had been there was a bare word
in body text, 32x24 with nothing to indicate it could be opened. It worked, and
read as if it did not.

Give panel-dropdown a `toggleClass` for the toggle's appearance, defaulting to
the nav's borderless treatment so a section menu is unchanged, and have the table
pass the button classes it stands in for. The toggle goes from 32x24 to 57x38
with a border and padding.

`dropdown-toggle` is emitted by the partial rather than left to the caller: it
draws the caret and Bootstrap keys its JavaScript off it, so a caller that
omitted it would get a control that neither indicates nor opens.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@netlify

netlify Bot commented Aug 23, 2026

Copy link
Copy Markdown

Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit fface78
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6a8bd3fcf818f90008079e0f
😎 Deploy Preview https://deploy-preview-2139--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@markdumay
markdumay enabled auto-merge August 24, 2026 05:21
@markdumay
markdumay merged commit 537c300 into main Aug 24, 2026
17 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.23.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@markdumay
markdumay deleted the fix/filter-dropdown-toggle branch August 24, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant