Commit 620d640e authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/kickoff: add text to allow screen reader to read button name


(cherry picked from commit 8db8a059)
parent 540a5927
Pipeline #206394 canceled with stage
in 12 seconds
......@@ -68,10 +68,11 @@ RowLayout {
icon.height: PlasmaCore.Units.iconSizes.smallMedium
icon.name: ["system-log-out", "system-shutdown", "view-more-symbolic", ""][currentId];
display: PC3.AbstractButton.IconOnly;
text: [i18n("Leave"), i18n("Power"), i18n("More"), ""][leaveButton.currentId]
visible: plasmoid.configuration.primaryActions !== 3
// Make it look pressed while the menu is open
down: contextMenu.status === PC2.DialogStatus.Open || pressed
PC3.ToolTip.text: [i18n("Leave"), i18n("Power"), i18n("More"), ""][leaveButton.currentId]
PC3.ToolTip.text: text
PC3.ToolTip.visible: leaveButton.hovered
PC3.ToolTip.delay: Kirigami.Units.toolTipDelay
Keys.onLeftPressed: if (!LayoutMirroring.enabled) {
......
Supports Markdown
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