From c92468a70615a5a371c93637085870afb89c81b8 Mon Sep 17 00:00:00 2001 From: David Godfrey Date: Fri, 2 Dec 2022 08:29:30 +0000 Subject: [PATCH] fix: Tidy up accessibility labels in bio fields Enables reading out the label for the checkmark, and avoids describing the title text as a 'button'. --- .../Profile/About/Cell/ProfileFieldCollectionViewCell.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Mastodon/Scene/Profile/About/Cell/ProfileFieldCollectionViewCell.swift b/Mastodon/Scene/Profile/About/Cell/ProfileFieldCollectionViewCell.swift index 1ed76a485..068da2ed5 100644 --- a/Mastodon/Scene/Profile/About/Cell/ProfileFieldCollectionViewCell.swift +++ b/Mastodon/Scene/Profile/About/Cell/ProfileFieldCollectionViewCell.swift @@ -68,6 +68,11 @@ extension ProfileFieldCollectionViewCell { checkmark.addInteraction(editMenuInteraction) } + // Setup Accessibility + checkmark.isAccessibilityElement = true + checkmark.accessibilityTraits = .none + keyMetaLabel.accessibilityTraits = .none + // containerStackView: V - [ metaContainer | plainContainer ] let containerStackView = UIStackView() containerStackView.axis = .vertical