Skip to content

Commit 37df066

Browse files
Fix 3 for PR 76
- Added aria-hashpopup and aria-expanded in the show column menu button for more accessibility - Fixed the inconsistency in the aria-label and the title text in DatabaseSidebar.jsx component
1 parent 6acfc4a commit 37df066

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web-dashboard/src/components/CollectionTable.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ export default function CollectionTable({ data, activeCollection, onDelete, onVi
365365
<button
366366
className="btn btn-secondary btn-sm"
367367
aria-label={showColumnMenu ? "Close column menu" : "Open column menu"}
368+
aria-hashpopup="menu"
369+
aria-expanded={showColumnMenu}
368370
onClick={() => setShowColumnMenu(!showColumnMenu)}
369371
style={{
370372
display: 'flex',

apps/web-dashboard/src/components/DatabaseSidebar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function DatabaseSidebar({
3737
</button>
3838
<button
3939
className="btn-icon add-col-btn"
40-
aria-label="Create new database collection"
40+
aria-label="New collection"
4141
onClick={() => navigate(`/project/${projectId}/create-collection`)}
4242
title="New Collection"
4343
>

0 commit comments

Comments
 (0)