Skip to content

Commit

Permalink
Adds background to some texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Jan 30, 2024
1 parent 8420fee commit 1d64fc9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct AccessibilityNumberWeaknessItemView: View {
#if !os(macOS)
.minimumScaleFactor(0.5)
#endif
.background(.formItemBackground)
.accessibilityLabeledPair(role: .content, id: viewModel.id, in: namespace)
}
.accessibilityElement(children: .combine)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ private struct _AccessibilitySignWeaknessItemView<ViewModel: WeaknessItemViewMod
#endif
#if !os(macOS)
.minimumScaleFactor(0.5)
#endif
#if !os(watchOS)
.background(.formItemBackground)
#endif
.accessibilityLabeledPair(role: .content, id: viewModel.id, in: namespace)
.accessibilityLabel(Text(viewModel.effectiveness.accessibilityLabel))
Expand Down
1 change: 1 addition & 0 deletions src/App/Views/Weaknesses/NumberWeaknessItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct NumberWeaknessItemView: View {
#if !os(macOS)
.minimumScaleFactor(0.5)
#endif
.background(.formItemBackground)
.accessibilityLabeledPair(role: .content, id: viewModel.id, in: namespace)
}
.accessibilityElement(children: .combine)
Expand Down
3 changes: 3 additions & 0 deletions src/App/Views/Weaknesses/SignWeaknessItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ struct SignWeaknessItemView<ViewModel: WeaknessItemViewModel>: View {
#endif
#if !os(macOS)
.minimumScaleFactor(0.5)
#endif
#if !os(watchOS)
.background(.formItemBackground)
#endif
.accessibilityLabeledPair(role: .content, id: viewModel.id, in: namespace)
.accessibilityLabel(Text(viewModel.effectiveness.accessibilityLabel))
Expand Down

0 comments on commit 1d64fc9

Please sign in to comment.