diff options
author | Shreya Pattani <[email protected]> | 2023-08-03 15:09:21 +0530 |
---|---|---|
committer | Shreya Pattani <[email protected]> | 2023-08-08 18:42:46 +0530 |
commit | cbcf15cdaad27997e6e0765b29fbc3f775ecaeec (patch) | |
tree | b3d26ef2aaec6863957aefde8df7d33f5a9060c8 | |
parent | aadbfc7ce3a74b1e081c44ab0db9d2d0e4985d59 (diff) |
Fix html tags being read by the narrator
Parsing the text as plain text to the narrator by using TextEdit and
getText function
Change-Id: I0331237eb9b3d7fd74de2f390b17ed13303d215c
Reviewed-by: Morten Johan Sørvig <[email protected]>
Reviewed-by: Mikołaj Boc <[email protected]>
Reviewed-by: Piotr Wierciński <[email protected]>
-rw-r--r-- | tests/manual/wasm/a11y/qml_basic_item/MeetingSummary.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/manual/wasm/a11y/qml_basic_item/MeetingSummary.qml b/tests/manual/wasm/a11y/qml_basic_item/MeetingSummary.qml index c3e0bd0547..9052ca3859 100644 --- a/tests/manual/wasm/a11y/qml_basic_item/MeetingSummary.qml +++ b/tests/manual/wasm/a11y/qml_basic_item/MeetingSummary.qml @@ -64,7 +64,7 @@ GroupBox { } } } - Text { + TextEdit { id: textSummary anchors { left: parent.left @@ -74,7 +74,7 @@ GroupBox { } width: 300 font.pixelSize: 16 - textFormat: Text.StyledText + textFormat: TextEdit.RichText text: qsTr((" Occurrence:<b> %1 </b> <br> Meeting to be held: <b>%2</b> <br> Invitees:<b> %3 </b> <br> @@ -89,10 +89,11 @@ GroupBox { .arg(meetingDescription)) wrapMode: Text.WrapAtWordBoundaryOrAnywhere + readOnly: true clip: true - Accessible.readOnly: true + Accessible.readOnly: readOnly Accessible.role: Accessible.StaticText - Accessible.name: text + Accessible.name: textSummary.getText(0, textSummary.length) Accessible.description: "A short summary of the meeting details" onVisibleChanged: { textSummary.text = qsTr((" Occurrence:<b> %1 </b> <br> |