diff --git a/src/commoncomponents/MaterialButton.qml b/src/commoncomponents/MaterialButton.qml index c1e4570c56f294b177985bfa765023643844531a..72a45917a15c94736c66027a60907a50d7e9cf85 100644 --- a/src/commoncomponents/MaterialButton.qml +++ b/src/commoncomponents/MaterialButton.qml @@ -58,6 +58,10 @@ Button { focusPolicy: Qt.TabFocus + Accessible.role: Accessible.Button + Accessible.name: root.text + Accessible.description: toolTipText + MaterialToolTip { id: toolTip diff --git a/src/commoncomponents/PushButton.qml b/src/commoncomponents/PushButton.qml index 555f1bb59f2e4b4e5e9fb1ef0d19fa5941e74767..ad28ae3298cf9e584f390c373ca4d2e024a3472c 100644 --- a/src/commoncomponents/PushButton.qml +++ b/src/commoncomponents/PushButton.qml @@ -79,6 +79,10 @@ AbstractButton { hoverEnabled: true focusPolicy: Qt.TabFocus + Accessible.role: Accessible.Button + Accessible.name: buttonText + Accessible.description: toolTipText + MaterialToolTip { id: toolTip diff --git a/src/mainview/components/SmartListItemDelegate.qml b/src/mainview/components/SmartListItemDelegate.qml index 95af16d0e44fcc709d47cb78bd140babd7609b8e..6797e4cc772e9fb1fbf81461844570ea69b84a07 100644 --- a/src/mainview/components/SmartListItemDelegate.qml +++ b/src/mainview/components/SmartListItemDelegate.qml @@ -142,6 +142,10 @@ ItemDelegate { } } } + + Accessible.role: Accessible.Button + Accessible.name: Title === undefined? "" : Title + Accessible.description: LastInteraction === undefined? "" : LastInteraction } background: Rectangle { diff --git a/src/settingsview/components/ToggleSwitch.qml b/src/settingsview/components/ToggleSwitch.qml index 4024650c88a9c5f6abd9937cfbdf51161bb47a49..2a6e0bb0c45d664fe7327c079ce2cf76e4d48d3b 100644 --- a/src/settingsview/components/ToggleSwitch.qml +++ b/src/settingsview/components/ToggleSwitch.qml @@ -66,6 +66,10 @@ RowLayout { ToolTip.visible: hovered && (tooltipText.length > 0) ToolTip.text: tooltipText + Accessible.role: Accessible.Button + Accessible.name: root.labelText + Accessible.description: root.tooltipText + onToggled: { switchToggled() }