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
979 B
QML
42 lines
979 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
Flow {
|
|
id: root
|
|
objectName: "flow_level_tags"
|
|
Accessible.role: Accessible.Pane
|
|
Accessible.name: "Level Tags"
|
|
|
|
property var tags: []
|
|
property color accent: "#94A3B8"
|
|
property bool isDark: false
|
|
|
|
Layout.fillWidth: true
|
|
spacing: 6
|
|
|
|
Repeater {
|
|
model: root.tags
|
|
Rectangle {
|
|
width: tText.implicitWidth + 16
|
|
height: 24
|
|
radius: 8
|
|
color: Qt.rgba(
|
|
root.accent.r, root.accent.g,
|
|
root.accent.b,
|
|
root.isDark ? 0.12 : 0.10)
|
|
Accessible.role: Accessible.StaticText
|
|
Accessible.name: modelData
|
|
|
|
CText {
|
|
id: tText
|
|
anchors.centerIn: parent
|
|
text: modelData
|
|
font.pixelSize: 11
|
|
font.weight: Font.Medium
|
|
color: root.accent
|
|
}
|
|
}
|
|
}
|
|
}
|