summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hempfling <[email protected]>2018-11-16 16:19:06 +0100
committerChristian Hempfling <[email protected]>2018-11-16 16:19:06 +0100
commitc860f6a90ad3117f1b774791c6a38d9e7596063e (patch)
tree4162de8899ac3c6fdee0d7665fae3efd55260072
parenta5fe302ee291b9842096929694b8c653c1a057a3 (diff)
A11y: Add accessibility information to tabbar in dash starter
-rw-r--r--applets/kicker/package/contents/ui/DashboardTabBar.qml3
-rw-r--r--applets/kicker/package/contents/ui/DashboardTabButton.qml2
2 files changed, 5 insertions, 0 deletions
diff --git a/applets/kicker/package/contents/ui/DashboardTabBar.qml b/applets/kicker/package/contents/ui/DashboardTabBar.qml
index 97f9efa..66dc4cf 100644
--- a/applets/kicker/package/contents/ui/DashboardTabBar.qml
+++ b/applets/kicker/package/contents/ui/DashboardTabBar.qml
@@ -24,6 +24,7 @@ Row {
property int activeTab: 0
property int hoveredTab: -1
+ Accessible.role: Accessible.PageTabList
signal containsMouseChanged(int index, bool containsMouse)
@@ -43,6 +44,7 @@ Row {
text: i18n("Apps & Docs")
active: (tabBar.activeTab == 0)
+ focus: parent.focus & active
}
DashboardTabButton {
@@ -53,6 +55,7 @@ Row {
text: i18n("Widgets")
active: (tabBar.activeTab == 1)
+ focus: parent.focus & active
}
Keys.onLeftPressed: {
diff --git a/applets/kicker/package/contents/ui/DashboardTabButton.qml b/applets/kicker/package/contents/ui/DashboardTabButton.qml
index 7647a71..96348fc 100644
--- a/applets/kicker/package/contents/ui/DashboardTabButton.qml
+++ b/applets/kicker/package/contents/ui/DashboardTabButton.qml
@@ -31,6 +31,8 @@ Item {
property int index: 0
property bool active: false
property alias text: label.text
+ Accessible.name: text
+ Accessible.role: Accessible.PageTab
Rectangle {
anchors.fill: parent