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 d27dcd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/app/views/user_interaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:local_notifier/local_notifier.dart';

import '../message.dart';
Expand Down Expand Up @@ -139,6 +140,8 @@ UserInteractionController promptUserInteraction(
void Function()? onCancel,
bool headless = false,
}) {
String a11yLabel = title + description;
SemanticsService.announce(a11yLabel, TextDirection.ltr);
if (headless) {
// No support for icon or onCancel.
return _notificationUserInteraction(context,
Expand Down

0 comments on commit d27dcd1

Please sign in to comment.