feat: condensed view — Navigation, OrderSidebar, Pagination#155
feat: condensed view — Navigation, OrderSidebar, Pagination#155garrity-miepub merged 11 commits intomainfrom
Conversation
Add 5 data-slots: breadcrumb (nav), breadcrumb-list (ol), breadcrumb-separator, breadcrumb-link, breadcrumb-page. Add condensed CSS: smaller font (0.6875rem), tighter gap, and reduced separator icon size.
Deploying ui with
|
| Latest commit: |
572217d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e76a1445.ui-6d0.pages.dev |
| Branch Preview URL: | https://feature-condensed-view-navig.ui-6d0.pages.dev |
There was a problem hiding this comment.
Pull request overview
Adds condensed-view support for the Breadcrumb component by introducing dedicated data-slot hooks and corresponding condensed CSS overrides.
Changes:
- Added
data-slotattributes to Breadcrumb structure elements (nav/list/separator/link/page). - Introduced condensed-mode CSS overrides for breadcrumb spacing, typography, and separator icon sizing.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/components/Breadcrumb/Breadcrumb.tsx | Adds data-slot attributes to breadcrumb elements to enable targeted styling. |
| src/styles/condensed-view.css | Adds condensed-mode overrides for breadcrumb spacing, font sizing, and separator SVG sizing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add 11 data-slots across CommandPalette and CommandPaletteTrigger: - command-palette-backdrop: overlay - command-palette: modal container - command-palette-search: search input section - command-palette-filters: category filter bar - command-palette-results: results list container - command-palette-empty: empty state - command-palette-group: category group header - command-palette-item: individual result item - command-palette-footer: footer with keyboard hints - command-palette-trigger: trigger button Add ~108 lines condensed CSS with reduced padding, font sizes, icon sizes, and spacing across all regions.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (1)
src/components/Breadcrumb/Breadcrumb.tsx:99
- The ellipsis breadcrumb item (
...) is still rendered withtext-smand has nodata-slot, so in condensed mode it will remain larger than the other breadcrumb text (which is reduced viabreadcrumb-link/breadcrumb-page). Consider adding a slot/class for the ellipsis element and applying the same condensed font-size/line-height overrides for visual consistency.
{isEllipsis ? (
<span className="text-muted-foreground text-sm">...</span>
) : isLast || !item.href ? (
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add 7 data-slots across all 3 LanguageSelector variants: - language-selector: dropdown root container - language-selector-trigger: dropdown trigger button - language-selector-dropdown: dropdown menu - language-selector-option: dropdown list items - language-selector-native: native select root - language-selector-inline: inline button group root - language-selector-inline-option: inline buttons Add condensed CSS covering trigger, dropdown, options, native select, and inline buttons with reduced padding, font sizes, icon sizes, and border-radius.
LanguageSelector is a form input (select/dropdown), not navigation. Recategorize from 'Components/Navigation' to 'Components/Forms & Inputs' in Storybook.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Breadcrumb: - Add font-size/line-height to breadcrumb-list so ellipsis and text separators inherit condensed sizing - Add font-size rule for breadcrumb-separator (text separators) - Wrap renderLink output with data-slot='breadcrumb-link' span so custom links get condensed styling CommandPalette: - Add data-slot='command-palette-item-icon' to icon wrapper div - Replace fragile '> div:first-child' CSS selector with explicit data-slot selector (fixes bug when item has no icon) - Add data-slot='command-palette-item' to renderItem wrapper div for consistent condensed styling
- Add 10 data-slot attributes: order-sidebar-backdrop, order-sidebar, order-sidebar-header, order-sidebar-content, order-sidebar-status, order-sidebar-details, order-sidebar-detail, order-sidebar-notes, order-sidebar-footer - Condensed CSS: narrower panel (22rem), tighter padding, smaller typography (0.8125rem title, 0.6875rem body, 0.625rem labels), compact notes box, reduced spacing
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Merge duplicate breadcrumb-list CSS rules into single block - Fix order-sidebar-details: replace gap (no effect on non-flex dl) with margin-based spacing via > * + * selector - Add breadcrumb-ellipsis data-slot so ellipsis gets condensed sizing - Add descendant override for breadcrumb-link children so custom renderLink elements with explicit text-sm get condensed font-size - Update PR title/description to include OrderSidebar
- Add 10 data-slots to Pagination: pagination, pagination-first, pagination-prev, pagination-next, pagination-last, pagination-pages, pagination-page, pagination-ellipsis - Add 3 data-slots to SimplePagination: simple-pagination, pagination-prev, pagination-next, pagination-info - Condensed CSS: smaller buttons (h-6), tighter gaps, smaller icons (0.75rem), compact page info text
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add role="listbox" to CommandPalette results container (ARIA fix for role="option" items without listbox ancestor) - Remove trailing space in OrderSidebar className template string - Update PR title/description to include Pagination
- Add 10 data-slots: sidebar-backdrop, sidebar, sidebar-header, sidebar-footer, sidebar-content, sidebar-nav, sidebar-nav-group, sidebar-nav-group-button, sidebar-nav-item, sidebar-search - Condensed CSS: tighter padding on header/footer/content, compact nav items (0.25rem py, 0.6875rem font), smaller icons (1rem), smaller badges, compact search input
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Remove role="listbox" from CommandPalette results container (default path uses <button>, not role="option") - Remove role="option"/aria-selected from renderItem wrapper, add role="button" instead (fixes lint + correct ARIA semantics) - Remove ineffective gap rule on sidebar-nav (uses space-y-* margin-based spacing, not flex/grid)
Add
data-slotattributes andbody.condensedCSS overrides for Navigation components, OrderSidebar, and Pagination.Components
Breadcrumb
breadcrumb,breadcrumb-list,breadcrumb-separator,breadcrumb-link,breadcrumb-page,breadcrumb-ellipsisrenderLinkoutput wrapped with data-slot span for consistent condensed stylingbreadcrumb-ellipsisdata-slot + descendant override for custom link childrenCommandPalette
command-palette-backdrop,command-palette,command-palette-search,command-palette-filters,command-palette-results,command-palette-empty,command-palette-group,command-palette-item,command-palette-item-icon,command-palette-footer,command-palette-triggerrole="listbox"to results containerLanguageSelector
Components/Forms & InputsStorybook categoryOrderSidebar
order-sidebar-backdrop,order-sidebar,order-sidebar-header,order-sidebar-content,order-sidebar-status,order-sidebar-details,order-sidebar-detail,order-sidebar-notes,order-sidebar-footerPagination
pagination,pagination-first,pagination-prev,pagination-next,pagination-last,pagination-pages,pagination-page,pagination-ellipsissimple-pagination,pagination-prev,pagination-next,pagination-info