mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Second-pass a11y work across all 12 component groups. Every interactive element now has activeFocusOnTab, Keys.onReturnPressed/SpacePressed, and context-aware Accessible.name/description bindings. Highlights: - Dialogs: keyboard handlers with enabled-guard on confirm buttons - CDropdownMenu: full keyboard nav (Up/Down/Enter/Escape) - CLoginForm: explicit KeyNavigation.tab chain (username→password→submit) - CNotificationBell: dynamic "3 notifications"/"No notifications" name - CJobProgressBar: Accessible.minimumValue/maximumValue/currentValue - CExecutionStatusDot: "Execution status: Running/Passed/Failed" binding - CKeyboardShortcuts: invisible Repeater exposes all shortcuts to a11y tree - CDataTable rows: "Row N of M" descriptions - Canvas elements: Accessible.Canvas role + keyboard zoom (+/- keys) - DropdownExpandedList: focus-highlight extended to :activeFocus - Dynamic names reflect loading state (e.g. "Signing in, please wait") Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
42 lines
1.0 KiB
QML
42 lines
1.0 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
FlexRow {
|
|
id: root
|
|
objectName: "status_execution"
|
|
Accessible.role: Accessible.StaticText
|
|
Accessible.name: {
|
|
if (root.status === "running")
|
|
return "Execution status: Running"
|
|
if (root.status === "success")
|
|
return "Execution status: Passed"
|
|
if (root.status !== "")
|
|
return "Execution status: Failed"
|
|
return "Execution status"
|
|
}
|
|
|
|
property string status: ""
|
|
|
|
spacing: 4
|
|
visible: status !== ""
|
|
|
|
Rectangle {
|
|
width: 10; height: 10; radius: 5
|
|
color: {
|
|
if (root.status === "running") return Theme.warning
|
|
if (root.status === "success") return Theme.success
|
|
return Theme.error
|
|
}
|
|
}
|
|
|
|
CText {
|
|
variant: "caption"
|
|
text: {
|
|
if (root.status === "running") return "Running..."
|
|
if (root.status === "success") return "Passed"
|
|
return "Failed"
|
|
}
|
|
}
|
|
}
|