Skip to content

Commit

Permalink
fix(a11y): turn off React Flow keyboard focus behaviour (#243)
Browse files Browse the repository at this point in the history
Turn off draggable/focus behaviour for React Flow nodes and edges. This should make the course diagrams easier to use when navigating the page with the keyboard.
  • Loading branch information
eatyourgreens authored Jul 18, 2024
1 parent 217250f commit 17b2f5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/navdiagram/NavDiagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ const NavDiagram: React.FC<NavDiagramProps> = ({ material, theme, course, exclud
maxZoom={2}
fitView
fitViewOptions={fitViewOptions}
edgesFocusable={false}
nodesFocusable={false}
nodesDraggable={false}
></ReactFlow>
</div>
</div>
Expand Down

0 comments on commit 17b2f5b

Please sign in to comment.