Pointer and touch
Click targets are at least 24 by 24 pixels, or have room around them, as WCAG 2.2 requires. The one exception is listed below. Every drag also has a single-click alternative, through a button or a menu.
Target sizes
Buttons and icon buttons are at least 32 pixels tall at the small size, and 28 at Compact density. A click anywhere on the label of a checkbox, radio or switch toggles it. Small icons inside a field or a tab, such as a clear button or a tab's close button, look small but accept clicks across a 24-pixel area around them.
One control is smaller than 24 pixels: the stacked step buttons of a
NumberField. The user can type the number instead. To show
full-height buttons on each side, set StepButtons="StepButtons.Split".
A way around every drag
Dragging is hard or impossible for some users, so every drag has a single-click alternative with the same result:
| Drag | Without dragging |
|---|---|
| DataGrid: move or resize a column | The column menu's Move left, Move right, Width and Fit to content items |
| DataGrid: reorder rows | The row handle's menu: Move up, Move down, Move to top, Move to bottom |
| DataGrid: group by a column | The column menu's Group by this column |
| DataGrid: change the order of grouping levels | Click a level's chip to open its menu: Move left, Move right |
| DataGrid: choose and order columns | The column picker's checkboxes and each row's handle menu |
| ListView and DropZoneGroup: move an item | The handle's or the item's menu, including Move to another zone |
| PickList: move items across, or reorder the chosen ones | The move buttons between the lists, a double-click, or the Move up and Move down buttons |
| TreeList: move a row under another | Click the row's handle or its Move action to open a dialog, then choose the new parent |
| TileLayout: move or resize a tile | The tile handle's menu: Move left, Move right, Move up, Move down, Wider, Narrower, Taller and Shorter |
| Scheduler: move or resize an appointment | Click it and change its times in the form |
| Splitter: resize a pane | Click the bar to open its menu: Wider, Narrower, Reset size and Collapse |
| Chart: zoom and pan | The Zoom in, Zoom out and Reset zoom buttons, next to the title or as ChartZoom and ChartResetZoom in a tile or card, or a ChartRangeSelector's preset ranges |
| Carousel: swipe | The previous and next buttons and the dots |
| Slider, RangeSlider, ColorPanel | Click where you want the value |
| RangeSelector: move the window | Click the strip, or choose a preset range |
| FileUpload: drop a file | Its Choose a file (or Choose files) button, which opens the file picker |
On touch screens
- Fields use 16-pixel text on touch screens, so iOS doesn't zoom the page when a field gets focus.
- Date fields open the phone's native date picker. A date field that needs IzzyBlazor's calendar shows its calendar button instead.
- File uploads hide the "or drag it here" text.
- Over a chart, one finger scrolls the page and two fingers pinch to zoom the chart.
- The user can swipe a carousel, and its arrows and dots still work.
- Toasts don't pause on touch screens, because there's no hover. Error toasts stay until the user dismisses them.