Skip to content

Commit

Permalink
fix(sidebar navigation): add aria-expanded and aria-haspopup to close…
Browse files Browse the repository at this point in the history
… button of sidebar navigation

fix open-sauced#4185
  • Loading branch information
CorinaMurg committed Nov 14, 2024
1 parent 5588533 commit 3875f02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Workspaces/WorkspaceLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export const WorkspaceLayout = ({ workspaceId, banner, children, footer }: Works
</span>
{!showingSidebar && (
<button
aria-expanded={showingSidebar}
aria-haspopup="true"
onClick={() => setShowingSidebar(true)}
className="fixed z-50 border-8 border-solid border-black inset-x-0 top-24 w-fit bg-white rounded-r-md shadow-lg p-2"
>
Expand Down

0 comments on commit 3875f02

Please sign in to comment.