Skip to content

Standardize all filter and segment modals styles#6298

Merged
sanne-san merged 3 commits intomasterfrom
sanne-dashboard-modals
Apr 30, 2026
Merged

Standardize all filter and segment modals styles#6298
sanne-san merged 3 commits intomasterfrom
sanne-dashboard-modals

Conversation

@sanne-san
Copy link
Copy Markdown
Contributor

@sanne-san sanne-san commented Apr 30, 2026

Changes

  • Add a shared ModalLayout/ModalFooter to give every modal the same header, body spacing, and button alignment
  • Add a shared Button component (matching the Phoenix variant) and switch all modal buttons to it for consistent sizing and theming
  • Align footer buttons to the right in all modal footers
  • Restructure the segment details modal: fixed "Segment details" title, with the segment name, type, and authorship shown inline in the body
  • Update the delete segment modal with a clearer title and a confirmation message
  • Make filter pills better visible inside modals with a gray background
  • Add a Cancel button to the filter modal when no filters are applied
  • Refine button theme borders so ghost, yellow, and icon variants line up at the same height as bordered buttons, and fix the visible border on disabled primary buttons

Tests

  • This PR does not require tests

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode

- Add a shared ModalLayout/ModalFooter to give every modal the same header, body spacing, and button alignment
- Add a shared Button component (matching the Phoenix variant) and switch all modal buttons to it for consistent sizing and theming
- Align footer buttons to the right in all modal footers
- Restructure the segment details modal: fixed "Segment details" title, with the segment name, type, and authorship shown inline in the body
- Update the delete segment modal with a clearer title and a confirmation message
- Make filter pills better visible inside modals with a gray background
- Add a Cancel button to the filter modal when no filters are applied
- Refine button theme borders so ghost, yellow, and icon variants line up at the same height as bordered buttons, and fix the visible border on disabled primary buttons
@sanne-san sanne-san requested a review from apata April 30, 2026 11:38
@sanne-san sanne-san force-pushed the sanne-dashboard-modals branch from f760230 to eed180e Compare April 30, 2026 11:42
@apata apata added bug Something isn't working preview and removed bug Something isn't working labels Apr 30, 2026
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6298

1 similar comment
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6298

Comment thread assets/js/dashboard/components/button.tsx Outdated
Comment thread assets/js/dashboard/segments/segment-modals.tsx Outdated
Copy link
Copy Markdown
Contributor

@apata apata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vast improvement, good job!

- Move shared button styles into `.btn-*` Tailwind component classes used by both the React Button and the Phoenix `button` component
- Tweak filter pill styling inside modals for dark mode
@sanne-san sanne-san added this pull request to the merge queue Apr 30, 2026
Merged via the queue into master with commit 53569d7 Apr 30, 2026
22 checks passed
@sanne-san sanne-san deleted the sanne-dashboard-modals branch April 30, 2026 18:24
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.

2 participants