Skip to content

Commit 41d2cf0

Browse files
committed
fix(frontend): address Copilot R7 comments on PR #616
- Remove aria-pressed from high-contrast toggle button: Scale nav-item may assign an implicit menuitem role to slotted content where aria-pressed is invalid per WAI-ARIA spec; convey toggle state via the dynamic aria-label instead (now includes '(currently on/off)')
1 parent c92847f commit 41d2cf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/App.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ watch(
413413
<button
414414
type="button"
415415
:class="['hc-toggle-button', { 'hc-active': highContrast }]"
416-
:aria-label="highContrast ? 'Disable high contrast mode' : 'Enable high contrast mode'"
417-
:aria-pressed="highContrast"
416+
:aria-label="highContrast ? 'Disable high contrast mode (currently on)' : 'Enable high contrast mode (currently off)'"
418417
@click="toggleHighContrast"
419418
>
420419
<scale-icon-action-eye :decorative="true"></scale-icon-action-eye>

0 commit comments

Comments
 (0)