fix(client): drop invalid li wrapper from sidebar groups
The group wrapper was rendering as `<li>`, but the enclosing `List` is `component="nav"` and so renders a `<nav>`, not a `<ul>`. That put list items directly inside a nav — invalid HTML, and a screen reader announces orphaned list items with no enclosing list or item count. `NavItem` renders a `div` via `ListItemButton`, so there is no list structure for the group wrapper to join. Makes it a plain `Box` and drops the now-redundant `listStyle: "none"`. Claude-Session: https://claude.ai/code/session_01AbYLvwpEaZFXktHVcqrFRd
This commit is contained in:
1 parent
ebbf1a8b1e
commit
30881a0af1
1 file changed
+1
-5
@@ -92,11 +92,7 @@ export const Sidebar = () => {
|
|||||||
pb={theme.spacing(LAYOUT.MD)}
|
pb={theme.spacing(LAYOUT.MD)}
|
||||||
/>
|
/>
|
||||||
{menu.map((group, groupIndex) => (
|
{menu.map((group, groupIndex) => (
|
||||||
<Box
|
<Box key={group.group}>
|
||||||
component="li"
|
|
||||||
key={group.group}
|
|
||||||
sx={{ listStyle: "none" }}
|
|
||||||
>
|
|
||||||
{collapsed ? (
|
{collapsed ? (
|
||||||
groupIndex > 0 && (
|
groupIndex > 0 && (
|
||||||
<Divider
|
<Divider
|
||||||
|
|||||||
Reference in new issue
Block a user