Skip to content

Commit

Permalink
a11y: Fix label for close button
Browse files Browse the repository at this point in the history
  • Loading branch information
fdennis committed Oct 26, 2023
1 parent 8a2ab47 commit bd65081
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/widgets/responsive_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@ class _ResponsiveDialogState extends State<ResponsiveDialog> {
appBar: AppBar(
title: widget.title,
actions: widget.actions,
leading: IconButton(
icon: const Icon(Icons.close),
onPressed: widget.allowCancel
? () {
widget.onCancel?.call();
Navigator.of(context).pop();
}
: null),
leading: Semantics(
label: AppLocalizations.of(context)!.s_close,
child: IconButton(
icon: const Icon(Icons.close),
onPressed: widget.allowCancel
? () {
widget.onCancel?.call();
Navigator.of(context).pop();
}
: null),
),
),
body: SingleChildScrollView(
child:
Expand Down

0 comments on commit bd65081

Please sign in to comment.