Skip to content

Dropdown: single divider for add-label + View-all expands inline#48

Merged
lifeiscontent merged 1 commit into
mainfrom
fix/dropdown-followup
Jun 10, 2026
Merged

Dropdown: single divider for add-label + View-all expands inline#48
lifeiscontent merged 1 commit into
mainfrom
fix/dropdown-followup

Conversation

@lifeiscontent

@lifeiscontent lifeiscontent commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Designer follow-up from @bhaveshraja's review on #16. Resolves #31.

Changes

  • Labels demo, single divider. Removed the extra border-t line that sat above the "Add label" row. The sticky DropdownSearch already draws its own bottom rule, so a single divider now separates the search field from the new-label item (Figma 64-626), matching the designer's correction (one line, not two).
  • Filters demo, "View all" expands inline. The viewAll (Assignee) section now previews only its first rows; the previously no-op "View all (N)" link reveals the remaining rows inline and becomes "Show less" to collapse them again. It's a DropdownItem menuitem, so it stays keyboard-focusable/operable, and aria-expanded reflects the inline-expansion state. Filter header click-to-collapse is unchanged (designer confirmed working).

Verification

  • vp check clean (format + lint + types).
  • vp run -r test green 3x (87 tests, 12 dropdown). The Filters play test now exercises View-all via keyboard (Enter) and asserts the hidden assignees appear, then collapse on "Show less".
  • vp run -r build passes (attw clean).
  • Rendered both demos in Storybook (chrome-devtools): Labels shows one divider between search and "Add label"; Filters' "View all (5)" expands Samuel/Sarah/Ethan inline and toggles to "Show less".

Labels demo: drop the extra divider line above the Add-label row so a
single divider (the sticky search's own bottom rule) sits between the
search field and the new-label item, per designer correction (Figma 64-626).

Filters demo: a viewAll section now previews its first rows and the
View-all toggle reveals the remaining rows inline (becoming Show less),
instead of being a styled no-op. Keyboard-accessible (menuitem, activated
via Enter in the play test) with aria-expanded reflecting the state.

Closes #31
Copilot AI review requested due to automatic review settings June 10, 2026 07:31
@lifeiscontent lifeiscontent self-assigned this Jun 10, 2026
@github-actions

Copy link
Copy Markdown

📚 Storybook preview: https://pr-48-propel-storybook.vamsi-906.workers.dev

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

Pull request overview

Updates the Dropdown Storybook demos to reflect designer follow-ups from #16 / issue #31: remove the extra divider in the Labels demo, and make the Filters demo “View all” control actually expand/collapse additional rows inline.

Changes:

  • Labels demo: removed the extra manual border-t divider so only the search header’s divider remains before “Add label”.
  • Filters demo: implemented inline expand/collapse for “View all (N)” → “Show less”, including aria-expanded, and updated the play test to validate keyboard activation + collapse.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lifeiscontent lifeiscontent merged commit ae55066 into main Jun 10, 2026
3 checks passed
@lifeiscontent lifeiscontent deleted the fix/dropdown-followup branch June 10, 2026 09:48
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.

Dropdown: designer follow-up (post-#16)

3 participants