Complete 4.5.1: Keyboard Navigation - implement full keyboard accessibility with skip links, focus management, and modal controls
This commit is contained in:
parent
313ee80726
commit
4c2b627e2e
4 changed files with 145 additions and 4 deletions
|
|
@ -1278,6 +1278,56 @@
|
|||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
/* =================================================================
|
||||
ACCESSIBILITY UTILITIES
|
||||
================================================================= */
|
||||
|
||||
/* Screen reader only content */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Focus visible states for keyboard navigation */
|
||||
.focus-visible:focus {
|
||||
outline: 2px solid var(--dodgers-blue);
|
||||
outline-offset: 2px;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
/* Skip links for navigation */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -40px;
|
||||
left: 6px;
|
||||
background: var(--dodgers-blue);
|
||||
color: white;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
z-index: 1000;
|
||||
transition: top 0.2s ease;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
top: 6px;
|
||||
}
|
||||
|
||||
/* Mobile-specific skip link only shown on mobile */
|
||||
@media (min-width: 768px) {
|
||||
.sr-only-mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* =================================================================
|
||||
LOADING ANIMATIONS - Phase 4.1.3 Implementation
|
||||
================================================================= */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue