Accessibility
Virtual Media Folders is built with accessibility in mind, following WCAG 2.1 guidelines:
Keyboard Navigation
Section titled “Keyboard Navigation”The folder tree supports complete keyboard navigation:
| Key | Action |
|---|---|
↓ / ↑ | Move between folders |
→ | Expand folder or move to first child |
← | Collapse folder or move to parent |
Enter / Space | Select folder |
Home | Jump to first folder |
End | Jump to last folder |
Accessible Drag and Drop
Section titled “Accessible Drag and Drop”Reordering folders is fully keyboard accessible using the drag handle (⋮⋮):
- Tab to the drag handle next to a folder name
- Press Enter or Space to pick up the folder
- Use Arrow keys to move the folder up or down
- Press Enter or Space to drop, or Escape to cancel
Screen readers announce each step:
- On focus: “Reorder, button, sortable. Press Enter to start dragging…”
- After drop: “Photos moved to position 3”
Moving media to folders can be done three ways:
-
Mouse/Touch: Drag media items onto a folder in the sidebar
-
Keyboard Move Mode:
- Focus a media item in the grid (use Tab or arrow keys)
- Press M to pick up the item (or select multiple first, then press M)
- Tab to the folder sidebar
- Navigate to target folder with Arrow keys
- Press Enter to drop, or M / Escape to cancel
-
Bulk Action Dropdown:
- Click “Bulk select” in the media library toolbar
- Select media items using Space or Enter
- Use the “Move to folder” dropdown and click “Apply”
Screen reader announcements guide you through keyboard move mode:
- On pick up: “Photo.jpg picked up. Navigate to a folder and press Enter to drop…”
- On drop: “Moved Photo.jpg to Events”
- On cancel: “Move cancelled”
ARIA Support
Section titled “ARIA Support”- Full ARIA tree pattern (
role="tree",role="treeitem") aria-expandedfor collapsible foldersaria-selectedfor current selectionaria-level,aria-setsize,aria-posinsetfor position context- Live region announcements for drag-drop operations
Screen Reader Support
Section titled “Screen Reader Support”- Announces folder reordering and deletion
- Hidden instructions for drag-and-drop operations
- Item counts announced with folder names
Visual Accessibility
Section titled “Visual Accessibility”- Focus indicators: Enhanced
:focus-visiblestyles with visible outlines - Reduced motion: Respects
prefers-reduced-motionpreference - High contrast: Supports
forced-colorsmode for Windows High Contrast - Color contrast: Meets WCAG AA contrast requirements
📦 Source: soderlind/virtual-media-folders · Edit on GitHub