Skip to content

Commit

Permalink
added semantic labels to the lock icon
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiangsu committed Jan 8, 2024
1 parent 0c86e69 commit c16848b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/community_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class CommunityIcon extends StatelessWidget {
child: Container(
padding: const EdgeInsets.all(4.0),
decoration: BoxDecoration(color: theme.colorScheme.background, shape: BoxShape.circle),
child: Icon(Icons.lock, color: theme.colorScheme.error, size: 20.0),
child: Icon(Icons.lock, color: theme.colorScheme.error, size: 20.0, semanticLabel: l10n.postingRestrictedToMods),
),
),
),
Expand Down

0 comments on commit c16848b

Please sign in to comment.