Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/school/src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export function Header() {
{/* Notifications */}
<button
type="button"
aria-label={t.common.notifications()}
className={cn(
`
relative inline-flex h-9 w-9 items-center justify-center
Expand All @@ -45,7 +46,6 @@ export function Header() {
)}
>
<IconBell className="h-5 w-5" />
<span className="sr-only">{t.common.notifications()}</span>
{/* Notification badge */}
<span className="absolute top-1 right-1 flex h-2 w-2">
<span className="
Expand Down
4 changes: 4 additions & 0 deletions pr_desc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
πŸ’‘ What: Added an `aria-label` to the icon-only notification button in the app header and removed the visually hidden `sr-only` span.
🎯 Why: Using `aria-label` directly on the `<button>` element is a cleaner, more robust pattern for icon-only buttons than relying on inner visually hidden spans, ensuring consistent screen reader announcements.
πŸ“Έ Before/After: Visuals remain unchanged (internal HTML structure update only).
β™Ώ Accessibility: Improves semantic HTML structure and screen reader support for the primary navigation header's notification action.
Loading