Scaffold: add roles to position containers

This commit is contained in:
thislight 2024-11-04 18:02:30 +08:00
parent bdaaeadba6
commit 9da4a3a4b3
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -36,12 +36,12 @@ const Scaffold: Component<ScaffoldProps> = (props) => {
return ( return (
<> <>
<Show when={props.topbar}> <Show when={props.topbar}>
<div class="Scaffold__topbar" ref={setTopbarElement}> <div class="Scaffold__topbar" ref={setTopbarElement} role="presentation">
{props.topbar} {props.topbar}
</div> </div>
</Show> </Show>
<Show when={props.fab}> <Show when={props.fab}>
<div class="Scaffold__fab-dock">{props.fab}</div> <div class="Scaffold__fab-dock" role="presentation">{props.fab}</div>
</Show> </Show>
<div <div
ref={(e) => { ref={(e) => {
@ -61,7 +61,7 @@ const Scaffold: Component<ScaffoldProps> = (props) => {
{managed.children} {managed.children}
</div> </div>
<Show when={props.bottom}> <Show when={props.bottom}>
<div class="Scaffold__bottom-dock">{props.bottom}</div> <div class="Scaffold__bottom-dock" role="presentation">{props.bottom}</div>
</Show> </Show>
</> </>
); );