Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.15.4
-
None
-
iOS 14.4.2 on iPhone 6s with Qt 5.15.4
Description
Context
Items on iOS Phone with VoiceOver activated should be shown as dedicated elements a blind person can navigate through. It has to fulfill requirements of WCAG 2.0 / WCAG2ICT
Expectations
- Heading items should be reported as "[Name], Heading"
Observation
- Only the text in Accessible.name is reported, but not the postifx ", Heading". This was marked as "Critical impact" in an ADA audit we had for our iOS app.
Code
import QtQuick 2.15 import QtQuick.Window 2.15 Window { visible: true Text { text: "Hello" Accessible.name: text Accessible.role: Accessible.Heading } } }
This is a native implementation in SwiftUI for behaviour comparison. See attached video for app in action
import SwiftUI struct ContentView: View { @State private var text: String = ""; var body: some View { VStack { Text("Title").accessibility(addTraits:[.isHeader]) TextField("Demo", text: $text) TextField("Demo", text: $text).accessibility(hint: Text("Description")) } } }