Skip to content

feat(FiltersInline): PDD-289 apply filter design feedback#892

Open
AronI wants to merge 2 commits into
mainfrom
pdd-289-filter-design-feedback
Open

feat(FiltersInline): PDD-289 apply filter design feedback#892
AronI wants to merge 2 commits into
mainfrom
pdd-289-filter-design-feedback

Conversation

@AronI

@AronI AronI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Design feedback from PDD-289:

  • Remove the confirm CTA from the sort dropdown, sort applies on selection. onSelectFilter now receives a change source ('drawer' or 'dropdown') so consumers apply sort immediately from the dropdown only.
  • Filter CTAs use regular button size instead of small.
  • Filter option labels use the labels small-bold type token.
  • Disabled styling for filter checkboxes so empty options render inactive instead of hidden.
  • Sort pill renders last in the row even when Sort is first in the filters array, so the drawer can list Sort first.

- remove the confirm CTA from the sort dropdown, sort applies on selection
- pass a change source ('drawer' | 'dropdown') to onSelectFilter so consumers can apply sort immediately from the dropdown only
- filter CTAs use regular button size instead of small
- filter option labels use the labels small-bold type token
- disabled styling for filter checkboxes so empty options can render inactive
- sort pill keeps rendering last in the row when Sort is first in the filters array
Copilot AI review requested due to automatic review settings July 14, 2026 16:29
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for phillips-seldon ready!

Name Link
🔨 Latest commit 620a1dd
🔍 Latest deploy log https://app.netlify.com/projects/phillips-seldon/deploys/6a578340947d4000084e41e1
😎 Deploy Preview https://deploy-preview-892--phillips-seldon.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.

@chromatic-com

chromatic-com Bot commented Jul 14, 2026

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: 464 tests unchanged
🟢 UI Review: 232 stories published -- no changes
Storybook icon Storybook Publish: 232 stories published

@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown

Copilot AI 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.

Pull request overview

This PR updates the FiltersInline pattern to incorporate PDD-289 design feedback, primarily changing sort behavior (apply immediately on selection) and aligning dropdown/drawer UI styling with updated design tokens and button sizing.

Changes:

  • Add a FilterChangeSource ('drawer' | 'dropdown') to onSelectFilter so consumers can apply sort immediately only when changes come from dropdowns.
  • Remove sort “Confirm” CTAs in dropdown menus and update CTA button sizing/styling across drawer/dropdowns.
  • Update styling so the Sort pill is visually last in the inline row and adjust filter option label + disabled checkbox styling.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/patterns/FiltersInline/utils.tsx Threads optional source through handleInputChange to onSelectFilter.
src/patterns/FiltersInline/types.ts Introduces FilterChangeSource, extends handler signatures, deprecates confirm translation.
src/patterns/FiltersInline/MainFilterDropdown.tsx Marks drawer-originated changes with 'drawer' and updates CTA button sizing.
src/patterns/FiltersInline/FiltersInline.test.tsx Updates/adds tests for sort dropdown behavior and source propagation.
src/patterns/FiltersInline/FilterDropdownMenuMobile.tsx Removes sort action buttons, passes 'dropdown' source on selection, updates CTA rendering.
src/patterns/FiltersInline/FilterDropdownMenuDesktop.tsx Removes sort action buttons, passes 'dropdown' source on selection, updates CTA rendering.
src/patterns/FiltersInline/_filtersInline.scss Forces Sort pill to render visually last and aligns it right on desktop.
src/patterns/FiltersInline/_filterDropdownMenu.scss Updates dropdown button styling, disabled checkbox styling, and label typography token usage.

Comment on lines +8 to +12
// The Sort filter always renders last in the row regardless of its position
// in the filters array (the drawer lists Sort first, the row shows it last).
> .#{$px}-filters-inline__sort {
order: 1;
}
Comment on lines +52 to +54
{/* Sort applies on selection, so the sort dropdown renders no action buttons. */}
{!isSortButton && (
<div className={classnames(`${baseClassName}__buttons-wrap`, `${baseClassName}__mobile-wrap`)}>
Comment thread src/patterns/FiltersInline/types.ts Outdated
- render the Sort pill last in the row DOM so tab order matches visual order
- drop the flexbox order hack now that DOM order is correct
- keep the mobile sort dropdown safe-area inset via a spacer
- reuse FilterChangeHandler for the dropdown menu props and input handler
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.

2 participants