Responsive · SU-170
Nothing scrolls sideways at 320px
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Toolbar
nowrap · 4 buttons
-
Toolbar
1 primary + More menu
Invoices
FilterExportShareNew invoice
CompanyIssuedStatusAmount
Northstar StudioOct 2Paid$1,500
Paper & PixelOct 4Overdue$1,200
Invoices
New
Northstar Studio
Oct 2 · Paid
Paper & Pixel
Oct 4 · Overdue
Fieldwork
Oct 9 · Paid
-
Page width at 320px
scrollWidth 540px
-
Table
stacked · scrollWidth 320px
What changes
- Bad
- At a
320pxviewport the four-button toolbar and540pxtable make the page540pxwide, so it scrolls sideways.audit.js: SU-170 fail: page is 540px wide at a 320px viewport - Good
- The toolbar keeps one primary action plus a More menu and the table becomes stacked rows, so the page stays
320pxwide.
The rules
-
SU-170
Nothing scrolls sideways at 320px. At 320 CSS px wide (1280 at 400% zoom) the page never scrolls horizontally. Toolbars collapse to one primary action plus "More", and tables become stacked rows. Wide content that really needs two dimensions (data tables, code, maps, charts) scrolls inside its own container, which has
tabindex="0"and a name so keyboard users can scroll it.