Skip to content

Conversation

ndrsszsz
Copy link
Contributor

@ndrsszsz ndrsszsz commented Feb 4, 2025

Parent - TeacherChat - Compose screen - add accessibilityHint to input fields

Ideally all input fields should have an accessibility trait as "text field" or "text input" or something like that, and most cases VoiceOver recognises these elements correctly, but for UITextView and UITextField it just doesn't work like that.
Since there is no accessibility trait that we could add to these for this case (textField or textInput) I added it as an accessibilityHint. VoiceOver reads it like it was a trait but it's a hint instead. I made some research and investigated what could be done and found no better solution than this one, but I'm open to any ideas. My guess is that UIKit text inputs have some issues with being accessible (the internet says other devs experienced similar accessibility issues with these components).

refs: MBL-18368
affects: Parent
release note: None
test plan: VoiceOver should read both "subject" and "body" input fields as "text field".

Checklist

  • Follow-up e2e test ticket created
  • A11y checked
  • Tested on phone
  • Tested on tablet
  • Tested in dark mode
  • Tested in light mode
  • Approve from product

…t fields

refs: MBL-18368
affects: Parent
release note: None
test plan: VoiceOver should read both "subject" and "body" input fields as "text field".
@inst-danger
Copy link
Contributor

inst-danger commented Feb 4, 2025

Teacher Build QR Code:

@inst-danger
Copy link
Contributor

inst-danger commented Feb 4, 2025

Parent Build QR Code:

@inst-danger
Copy link
Contributor

inst-danger commented Feb 4, 2025

Warnings
⚠️ This pull request will not generate a release note.
⚠️ One or more files are below the minimum test coverage 50%

Affected Apps: Parent

MBL-18368

Coverage New % Master % Delta
Canvas iOS 91.35% 91.35% -0%
Core/Core/Common/CommonModels/Store/FetchedCollection.swift 48.72% 48.72% 0%
Core/Core/Common/Extensions/Foundation/CGSizeExtensions.swift 0% 0% 0%
Core/Core/Features/Courses/SmartSearch/Model/CourseSmartSearchViewAttributes.swift 30.77% 30.77% 0%
Core/Core/Common/Extensions/SwiftUI/UIColor+Color.swift 0% 0% 0%
Core/Core/Features/Search/Model/SearchSupportButtonModel.swift 0% 0% 0%
Core/Core/Common/CommonModels/AppEnvironment/AppEnvironmentOverride.swift 32.76% 32.76% 0%

Generated by 🚫 dangerJS against 7dfe7bc

Copy link
Contributor

@suhaibabsi-inst suhaibabsi-inst left a comment

Choose a reason for hiding this comment

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

QA +1

One note though, I noticed that when Voice Over is read over subject and message it mentions "Input" word within it. Which I am not sure is intentional.

For example, subject is read out as this:
Subject input, text field, enter a subject for your message, double tap to edit.

The same is read out for Message field as well.

Copy link
Collaborator

@vargaat vargaat left a comment

Choose a reason for hiding this comment

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

QA+1

One note though, I noticed that when Voice Over is read over subject and message it mentions "Input" word within it. Which I am not sure is intentional.

I could not reproduce this in the parent app on iOS 18.2.

@vargaat vargaat merged commit 6a4c818 into master Feb 10, 2025
5 checks passed
@vargaat vargaat deleted the bugfix/MBL-18368-a11y-parent-chat-compose-message-input-field-traits branch February 10, 2025 15:26
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.

4 participants