Skip to content

Commit a8b22e4

Browse files
hxrshxzdoradocodes
authored andcommitted
refactor: change div to aside for accessibility in settings component
1 parent 41a3e69 commit a8b22e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Settings/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const a11ySettingsProps = [
7575
const { hideSearch } = Astro.props;
7676
---
7777

78-
<div class={`${styles.container} ${jumpToState ? "" : "noJumpTo"}`}>
78+
<aside class={`${styles.container} ${jumpToState ? "" : "noJumpTo"}`} aria-label="Settings">
7979
<div id="settings-placeholder" class={styles.placeholder}></div>
8080
<div id="settings-hitbox" class={styles.hitbox}></div>
8181
<div id="settings-container" class={`${styles.wrapper} settings`}>
@@ -97,5 +97,5 @@ const { hideSearch } = Astro.props;
9797
)
9898
}
9999
</div>
100-
</div>
100+
</aside>
101101
<script src="./script.js"></script>

0 commit comments

Comments
 (0)