Commit e0908a1
Fix lower-sticky-note accessibility for screen readers
Resolves CORE-1490
This commit addresses critical accessibility issues in the lower-sticky-note
component that prevented screen reader users from accessing the donation
banner content.
Changes made:
1. Added ARIA live region attributes (aria-live="polite" and aria-atomic="true")
to the container div to ensure screen readers announce the dynamically
loaded content when it appears on the page.
2. Changed role from "dialog" to "complementary" since this is a non-modal
notification banner that doesn't trap focus.
3. Updated aria-label from generic "sticky note" to descriptive "Donation
campaign announcement" to better convey the purpose to screen reader users.
4. Added aria-hidden="true" to all FontAwesome icon components to prevent
screen readers from announcing icon content alongside button labels.
Files modified:
- src/app/layouts/default/lower-sticky-note/lsn-content.tsx
- src/app/components/put-away/put-away.tsx
Testing: This fix should be tested with NVDA/JAWS (Windows) and VoiceOver
(macOS) to verify that the banner content is announced when it appears and
that all interactive elements (dismiss button and donation link) are
accessible and operable with screen readers.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 0c51fa5 commit e0908a1
File tree
2 files changed
+8
-6
lines changed- src/app
- components/put-away
- layouts/default/lower-sticky-note
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments