Make every component and the landing page responsive (v0.3.1)

Every story and the landing page now fit from a 320px phone to a wide
desktop without scrolling sideways.

- Inputs in flex rows (Input, FeaturedInput, NumberInput, Combobox) shrink
  instead of holding their native width
- Tab rows and ToggleGroup scroll within themselves on narrow screens;
  vertical tabs stack above their panel on phones
- Positioned popups cap at Base UI's --available-width
- Landing page: tablet header no longer crowds; code sample fits at 1024px
- Storybook a11y panel skips page-level rules that can't apply to a story
- check-stories.mjs gains --width and fails on horizontal overflow; all
  423 stories pass at 320, 375, 768 and desktop widths in both modes
This commit is contained in:
thekhalidsha committed 2026-09-28 22:47:26 +05:30
1 parent f01de83733
commit 23e67006d3
24 files changed
+136 -31

No files matched your search

+11
View File
@@ -50,6 +50,17 @@ const preview: Preview = {
},
parameters: {
backgrounds: { disable: true },
a11y: {
// Page-level rules can't apply to an isolated component: a story has no
// <main>, no <h1> and no landmarks of its own. Everything else runs.
config: {
rules: [
{ id: 'landmark-one-main', enabled: false },
{ id: 'page-has-heading-one', enabled: false },
{ id: 'region', enabled: false },
],
},
},
docs: {
theme: tansyTheme,
},