Files
metabuilder/qml/MetaBuilder/CComponentTypeLegend.qml
johndoe6345789 d9ca84628b feat(a11y): deep keyboard accessibility pass across all QML components
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>
2026-03-19 20:53:53 +00:00

39 lines
1.0 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
FlexRow {
id: root
objectName: "legend_component_type"
Accessible.role: Accessible.Pane
Accessible.name: "Component Type Legend"
Layout.fillWidth: true
spacing: 6
Repeater {
model: [
{ label: "container", color: "#5C6BC0" },
{ label: "layout", color: "#26A69A" },
{ label: "widget", color: "#FFA726" },
{ label: "atom", color: "#EF5350" }
]
delegate: Row {
spacing: 4
Accessible.role: Accessible.StaticText
Accessible.name: modelData.label
+ " component type"
Rectangle {
width: 10; height: 10; radius: 2
color: modelData.color
anchors.verticalCenter:
parent.verticalCenter
}
CText {
variant: "caption"
text: modelData.label
}
}
}
}