fix(a11y): close cross-app interaction gaps
This commit is contained in:
@@ -293,6 +293,7 @@ export default function AppShell({
|
||||
edge="start"
|
||||
size="small"
|
||||
color="secondary"
|
||||
aria-label="Open navigation"
|
||||
onClick={() => onToggleDrawer(true)}
|
||||
sx={{ border: "1px solid", borderColor: "divider", borderRadius: 2.5, width: 42, height: 42 }}
|
||||
>
|
||||
@@ -311,6 +312,7 @@ export default function AppShell({
|
||||
{user ? (
|
||||
<IconButton
|
||||
size="small"
|
||||
aria-label={t("user")}
|
||||
onClick={(e) => setUserMenuAnchor(e.currentTarget)}
|
||||
sx={{ borderRadius: 2.5, border: "1px solid", borderColor: "divider", width: 42, height: 42, flex: "0 0 auto" }}
|
||||
>
|
||||
@@ -337,6 +339,7 @@ export default function AppShell({
|
||||
color="secondary"
|
||||
size="small"
|
||||
title={t("settings")}
|
||||
aria-label={t("settings")}
|
||||
onClick={onOpenSettings}
|
||||
sx={{ border: "1px solid", borderColor: "divider", borderRadius: 2.5, width: 42, height: 42 }}
|
||||
>
|
||||
@@ -366,6 +369,7 @@ export default function AppShell({
|
||||
color="secondary"
|
||||
onClick={() => setDesktopNavCollapsed((value) => !value)}
|
||||
title={desktopNavCollapsed ? "Expand sidebar" : "Collapse sidebar"}
|
||||
aria-label={desktopNavCollapsed ? "Expand sidebar" : "Collapse sidebar"}
|
||||
sx={{ border: "1px solid", borderColor: "divider", borderRadius: 2, width: 40, height: 40 }}
|
||||
>
|
||||
<MenuOpenIcon fontSize="small" sx={{ transform: desktopNavCollapsed ? "scaleX(-1)" : "none" }} />
|
||||
@@ -400,6 +404,7 @@ export default function AppShell({
|
||||
color="secondary"
|
||||
size="small"
|
||||
title={t("settings")}
|
||||
aria-label={t("settings")}
|
||||
onClick={onOpenSettings}
|
||||
sx={{ border: "1px solid", borderColor: "divider", borderRadius: 2 }}
|
||||
>
|
||||
@@ -414,6 +419,7 @@ export default function AppShell({
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1.25, pl: { xs: 0, sm: 1 } }}>
|
||||
<IconButton
|
||||
size="small"
|
||||
aria-label={t("user")}
|
||||
onClick={(e) => setUserMenuAnchor(e.currentTarget)}
|
||||
sx={{ borderRadius: 2, border: "1px solid", borderColor: "divider" }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user