Commit c860f6a9 authored by Christian Hempfling's avatar Christian Hempfling

A11y: Add accessibility information to tabbar in dash starter

parent a5fe302e
......@@ -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: {
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment