Skip to content

Commit

Permalink
A11y: read 'Touch your YubiKey' prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
fdennis committed Oct 25, 2024
1 parent 1727cd9 commit 9be9bdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/desktop/oath/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import 'dart:convert';
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:logging/logging.dart';
Expand Down Expand Up @@ -276,6 +277,8 @@ class DesktopCredentialListNotifier extends OathCredentialListNotifier {
controller = await _withContext(
(context) async {
final l10n = AppLocalizations.of(context)!;
String a11yLabel = l10n.s_touch_required + l10n.l_touch_button_now;
SemanticsService.announce(a11yLabel, TextDirection.ltr);
return promptUserInteraction(
context,
icon: const Icon(Symbols.touch_app),
Expand Down

0 comments on commit 9be9bdb

Please sign in to comment.