Commit 81c496c
fix: add inline styles to sr-only spans for CSS-independent accessibility
The sr-only spans now work without requiring the datepicker stylesheet
to be loaded. This fixes an issue where weekday names would show full
names (e.g., "Thursday") instead of abbreviated names when CSS isn't
properly applied - which can happen in certain environments like Tauri.
The accessibility pattern remains the same (screen readers get the full
weekday name, visual users see the abbreviation), but now it works
even when CSS fails to load.
Fixes #6173
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0231bbd commit 81c496c
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
512 | 525 | | |
513 | 526 | | |
514 | 527 | | |
| |||
517 | 530 | | |
518 | 531 | | |
519 | 532 | | |
520 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
521 | 536 | | |
522 | 537 | | |
523 | 538 | | |
| |||
568 | 583 | | |
569 | 584 | | |
570 | 585 | | |
571 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
572 | 589 | | |
573 | 590 | | |
574 | 591 | | |
| |||
0 commit comments