Skip to content

fix(datagrid): announce grid selection to all assistive tech; label dialog controls (#1490)#1513

Merged
datlechin merged 1 commit into
mainfrom
a11y/voiceover-announce-guard
May 30, 2026
Merged

fix(datagrid): announce grid selection to all assistive tech; label dialog controls (#1490)#1513
datlechin merged 1 commit into
mainfrom
a11y/voiceover-announce-guard

Conversation

@datlechin

Copy link
Copy Markdown
Member

Part of #1490 (keyboard, focus, accessibility). VoiceOver polish.

  • Grid selection announcement: dropped the NSWorkspace.shared.isVoiceOverEnabled guard in GridSelectionController.postAccessibilityAnnouncement. NSAccessibility.post is only delivered to running assistive technologies anyway, so the guard added nothing and excluded non-VoiceOver AT (Switch Control, etc.) and the case where VoiceOver is enabled mid-session.
  • TableOperationDialog: .accessibilityHint on the 'Ignore foreign key checks' and 'Cascade' toggles describing the consequence.
  • FavoriteEditDialog: .accessibilityLabel("Query") on the query TextEditor (it had no adjacent field label for VoiceOver).

Additive, no behavior change for sighted users. Lint clean, style gate clean.

@datlechin datlechin merged commit 7e509b8 into main May 30, 2026
4 checks passed
@datlechin datlechin deleted the a11y/voiceover-announce-guard branch May 30, 2026 07:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee3ef42498

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
.toggleStyle(.checkbox)
.disabled(ignoreFKDisabled)
.accessibilityHint(String(localized: "Skips foreign key constraint checks for this operation"))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Condition the FK hint on unsupported databases

When supportsForeignKeyDisable is false, ignoreFKDisabled disables this checkbox, but the newly added hint still tells assistive-tech users that the option “Skips foreign key constraint checks for this operation.” In that unsupported-database scenario the option cannot be selected and will remain false, so the accessible description contradicts the actual behavior; use the existing unsupported description or omit the hint while disabled.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant