Skip to content

Commit

Permalink
Add tooltips to PIV option chips
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Jan 20, 2025
1 parent 1524ad1 commit 0582f9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/piv/views/generate_key_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ class _GenerateKeyDialogState extends ConsumerState<GenerateKeyDialog> {
runSpacing: 8.0,
children: [
ChoiceFilterChip<KeyType>(
tooltip: l10n.s_algorithm,
items: getSupportedKeyTypes(
widget.pivState.version, isFips),
value: _keyType,
Expand All @@ -222,6 +223,7 @@ class _GenerateKeyDialogState extends ConsumerState<GenerateKeyDialog> {
},
),
ChoiceFilterChip<GenerateType>(
tooltip: l10n.s_output_format,
items: GenerateType.values,
value: _generateType,
selected: _generateType != defaultGenerateType,
Expand All @@ -238,6 +240,7 @@ class _GenerateKeyDialogState extends ConsumerState<GenerateKeyDialog> {
),
if (_generateType == GenerateType.certificate)
FilterChip(
tooltip: l10n.s_expiration_date,
label: Text(dateFormatter.format(_validTo)),
onSelected: _generating
? null
Expand Down Expand Up @@ -297,7 +300,7 @@ class _GenerateKeyDialogState extends ConsumerState<GenerateKeyDialog> {
fontWeight: FontWeight.w700),
),
TextSpan(text: '\n'),
TextSpan(text: l10n.p_expiration_date_desc)
TextSpan(text: l10n.p_expiration_date_desc),
],
),
),
Expand Down

0 comments on commit 0582f9b

Please sign in to comment.