Skip to content

Conversation

@JammingBen
Copy link
Contributor

Before (note the increased margin on the left side compared to the right):

image

After:

image

@JammingBen JammingBen self-assigned this Dec 11, 2025
Copilot AI review requested due to automatic review settings December 11, 2025 10:40
Copy link
Contributor

Copilot AI left a comment

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 fixes inconsistent horizontal margins in filter chip components by adjusting padding and gap values to achieve balanced spacing on both sides of the chip.

Key Changes:

  • Updated filter chip button styling to use px-3 instead of px-2 for base padding
  • Changed gap handling to use dynamic gap-size prop with conditional logic based on filter state
  • Added CSS transition for smooth gap changes

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/design-system/src/components/OcFilterChip/OcFilterChip.vue Modified button padding from px-2 to px-3, changed gap from static gap-1 to dynamic gap-size prop, and added px-0 for active state
packages/web-pkg/tests/unit/components/snapshots/ItemFilter.spec.ts.snap Updated snapshot to reflect new CSS classes: gap-0, px-3, and transition-[gap]
packages/web-pkg/tests/unit/components/Filters/snapshots/DateFilter.spec.ts.snap Updated snapshot to reflect new CSS classes: gap-0, px-3, and transition-[gap]

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

@JammingBen JammingBen force-pushed the fix/design-system-filter-margins branch from 085a96a to 1061da1 Compare December 11, 2025 11:05
@JammingBen JammingBen force-pushed the fix/design-system-filter-margins branch from 1061da1 to 9691bd7 Compare December 11, 2025 11:05
@kulmann kulmann merged commit bda4aa5 into main Dec 15, 2025
28 checks passed
@kulmann kulmann deleted the fix/design-system-filter-margins branch December 15, 2025 12:28
openclouders pushed a commit that referenced this pull request Dec 15, 2025
…argins

fix(design-system): filter chip margins
@openclouders openclouders mentioned this pull request Dec 15, 2025
1 task
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.

3 participants