+ {/* Integ tests click the heading, then press Tab to move keyboard focus into the list. */}
+
+ {container === 'wrapper' && (
+
+ {list()}
+
+ )}
+ {container === 'page' && list()}
+ {container === 'dropdown' && (
+
+ )}
+
+ Selected: {selectedOptions.map(option => option.value).join(', ') || 'none'}
+
+
+ );
+}
+
+export default function OptionListScrollPage() {
+ const { urlParams, setUrlParams } = useContext(AppContext as PageContext);
+ const container = urlParams.container ?? 'wrapper';
+ const expandToViewport = urlParams.expandToViewport ?? false;
+ const selectionType = urlParams.selectionType ?? 'single';
+ const preselected = urlParams.preselected ?? 'none';
+
+ return (
+