You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing tests for the ThemeToggle component, I discovered that the aria-label attribute remains static ("Toggle Dark Mode") and does not reflect the current theme. This is an accessibility issue.
This label does not change even after toggling the theme. As a result, screen reader users are not informed of the action the button will perform, which violates WCAG 4.1.2 (Name, Role, Value).