-
-
Notifications
You must be signed in to change notification settings - Fork 10
🎨 Palette: Add dynamic context to list accessibility #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -129,6 +129,8 @@ struct ScriptListView: View { | |||||||||
| .contentShape(Rectangle()) | ||||||||||
| } | ||||||||||
| .buttonStyle(.plain) | ||||||||||
| .help("Use \(example.name) example") | ||||||||||
| .accessibilityLabel("Use \(example.name) example") | ||||||||||
|
Comment on lines
+132
to
+133
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Don’t replace the example card’s synthesized label. Line 133 likely strips out the visible description from the accessibility tree and reduces the button to just “Use … example”. These cards already expose ♿ Suggested fix .help("Use \(example.name) example")
-.accessibilityLabel("Use \(example.name) example")
+.accessibilityHint("Use \(example.name) example")📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| } | ||||||||||
|
|
||||||||||
| HStack(spacing: 12) { | ||||||||||
|
|
@@ -222,16 +224,16 @@ struct ScriptRow: View { | |||||||||
| .foregroundColor(.accentColor) | ||||||||||
| } | ||||||||||
| .buttonStyle(.borderless) | ||||||||||
| .help("Edit") | ||||||||||
| .accessibilityLabel("Edit") | ||||||||||
| .help("Edit \(script.name.isEmpty ? "Untitled Script" : script.name)") | ||||||||||
| .accessibilityLabel("Edit \(script.name.isEmpty ? "Untitled Script" : script.name)") | ||||||||||
|
|
||||||||||
| Button(action: onDelete) { | ||||||||||
| Image(systemName: "trash") | ||||||||||
| .foregroundColor(.red.opacity(0.8)) | ||||||||||
| } | ||||||||||
| .buttonStyle(.borderless) | ||||||||||
| .help("Delete") | ||||||||||
| .accessibilityLabel("Delete") | ||||||||||
| .help("Delete \(script.name.isEmpty ? "Untitled Script" : script.name)") | ||||||||||
| .accessibilityLabel("Delete \(script.name.isEmpty ? "Untitled Script" : script.name)") | ||||||||||
| } | ||||||||||
| } | ||||||||||
| .padding(.horizontal, 12) | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Use the resolved action name here, not
actionDisplayString.Lines 118-127 and 264-273 still become generic for macro/script mappings because
actionDisplayStringreturns"Macro"/"Script"in those cases.ChordRowalready resolves the actual macro/script name for the visible label, so the new tooltip/VoiceOver text remains ambiguous in repeated lists.♿ Suggested direction
Also applies to: 264-273
🤖 Prompt for AI Agents