Skip to content

feat(ProviderCard): add condensed view support#168

Draft
garrity-miepub wants to merge 2 commits intomainfrom
feature/condensed-view-provider-continued
Draft

feat(ProviderCard): add condensed view support#168
garrity-miepub wants to merge 2 commits intomainfrom
feature/condensed-view-provider-continued

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

  • Add 10 data-slot attributes to ProviderCard, ProviderCardGrid
  • Add data-variant attribute for variant-aware CSS targeting
  • Add condensed CSS overrides for all 3 variants (compact, list, featured)
  • Condense logo, content padding, header, address, phone, services, footer
  • Featured variant strips p-6 padding and matches compact density

- Add 10 data-slot attributes to ProviderCard, ProviderCardGrid
- Add data-variant attribute for variant-aware CSS targeting
- Add condensed CSS overrides for all 3 variants (compact, list, featured)
- Condense logo, content padding, header, address, phone, services, footer
- Featured variant strips p-6 padding and matches compact density
Copilot AI review requested due to automatic review settings April 8, 2026 02:03
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 8, 2026

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9f8a294
Status: ✅  Deploy successful!
Preview URL: https://0bc906af.ui-6d0.pages.dev
Branch Preview URL: https://feature-condensed-view-provi-8bpu.ui-6d0.pages.dev

View logs

Copy link
Copy Markdown

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

Adds condensed-mode styling hooks and CSS overrides for ProviderCard/ProviderCardGrid so the component can be density-adjusted in the existing body.condensed styling system.

Changes:

  • Added data-slot hooks to key ProviderCard sub-elements (root, logo, content, header, address, phone, services, footer) plus ProviderCardGrid.
  • Added data-variant on the ProviderCard root for variant-aware condensed CSS targeting.
  • Implemented condensed CSS overrides for compact, list, and featured variants (logo sizing, padding, typography, spacing, grid gap, and empty-state sizing).

Reviewed changes

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

File Description
src/styles/condensed-view.css Adds condensed CSS rules targeting the new ProviderCard/ProviderCardGrid data-slot/data-variant hooks.
src/components/ProviderCard/ProviderCard.tsx Adds data-slot and data-variant attributes to ProviderCard elements for condensed-view styling.

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

…mponents

Tooltip wraps triggers in <div class='relative inline-flex'>, breaking
structural selectors (> span, > div > div).

- Add data-slot='provider-card-verified' to VerifiedBadge span
- Add data-slot='provider-card-safe-notice' to SafeFromWildfiresNotice div
- Replace structural selectors with data-slot selectors in condensed CSS
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