Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

The menu bar panel's figures read as one line each for VoiceOver

Țugui Dragoșe0a2dca4924f
diff --git a/Peel/Views/MenuBarPanel.swift b/Peel/Views/MenuBarPanel.swift
index 17f4209b..e62e76d8 100644
--- a/Peel/Views/MenuBarPanel.swift
+++ b/Peel/Views/MenuBarPanel.swift
@@ -117,6 +117,8 @@ struct MenuBarPanel: View {
)
}
.buttonStyle(.plain)
+ .accessibilityLabel(Text("Updates waiting"))
+ .accessibilityValue(Text(verbatim: waiting.count.formatted()))
.background(isPointingAtUpdates ? Album.slot : .clear)
.motion(.touch, value: isPointingAtUpdates)
.onHover { isPointingAtUpdates = $0 }
@@ -166,6 +168,11 @@ struct MenuBarPanel: View {
.padding(.horizontal, Self.rowPadding)
.frame(height: 46)
.contentShape(.rect)
+ // One element, as a list row reads: the symbols are decoration, and the figure is the row's value.
+ .accessibilityElement(children: .ignore)
+ .accessibilityAddTraits(.isStaticText)
+ .accessibilityLabel(label)
+ .accessibilityValue(Text(verbatim: value))
}
private var footer: some View {