From f52091fe630eadbcc95f3f775c39509b79469612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 28 Jul 2026 09:44:03 +0200 Subject: [PATCH 1/2] fix: improve keyboard access for click-only controls Replace faux buttons in the Agent UI with real buttons so keyboard and screen reader users can activate tabs, expanders, and icon actions without relying on mouse-only interactions. Co-authored-by: Cursor --- .../editable-text.component.html | 19 +++-- .../editable-text.component.scss | 12 ++- .../macro/header/macro-header.component.html | 33 +++++--- .../macro/header/macro-header.component.scss | 6 ++ .../macro/item/macro-item.component.html | 49 ++++++++++-- .../macro/item/macro-item.component.scss | 32 ++++++++ .../components/popover/popover.component.html | 17 ++-- .../components/popover/popover.component.scss | 3 +- .../tab/macro/macro-tab.component.html | 28 ++++--- .../side-menu/side-menu.component.html | 79 +++++++++++++------ .../side-menu/side-menu.component.scss | 23 +++++- .../user-configuration-history.component.html | 40 +++++----- 12 files changed, 242 insertions(+), 99 deletions(-) diff --git a/packages/uhk-web/src/app/components/editable-text/editable-text.component.html b/packages/uhk-web/src/app/components/editable-text/editable-text.component.html index bed3710a25f..aaddb688bdf 100644 --- a/packages/uhk-web/src/app/components/editable-text/editable-text.component.html +++ b/packages/uhk-web/src/app/components/editable-text/editable-text.component.html @@ -1,16 +1,15 @@
- - {{ placeholder }} - + - - +
diff --git a/packages/uhk-web/src/app/components/editable-text/editable-text.component.scss b/packages/uhk-web/src/app/components/editable-text/editable-text.component.scss index 348cea73754..48eeb8a9840 100644 --- a/packages/uhk-web/src/app/components/editable-text/editable-text.component.scss +++ b/packages/uhk-web/src/app/components/editable-text/editable-text.component.scss @@ -1,7 +1,7 @@ :host { margin-top: 0.5em; - span.placeholder { + .placeholder { color: gray; display: inline-block; @@ -10,11 +10,17 @@ } } - span.editable, - span.placeholder { + .editable, + .placeholder { cursor: pointer; } + .editable-text__trigger { + color: inherit; + text-decoration: none; + white-space: normal; + } + textarea.text-editor { display: block; width: 100%; diff --git a/packages/uhk-web/src/app/components/macro/header/macro-header.component.html b/packages/uhk-web/src/app/components/macro/header/macro-header.component.html index 34de6eba06a..80d4c61fc39 100644 --- a/packages/uhk-web/src/app/components/macro/header/macro-header.component.html +++ b/packages/uhk-web/src/app/components/macro/header/macro-header.component.html @@ -4,19 +4,26 @@ maxParentWidthPercent="0.8" [selectAfterInit]="isNew" (ngModelChange)="editMacroName($event)"> - - + +
Used on: diff --git a/packages/uhk-web/src/app/components/macro/header/macro-header.component.scss b/packages/uhk-web/src/app/components/macro/header/macro-header.component.scss index 469b7e2e536..0fbd50748e4 100644 --- a/packages/uhk-web/src/app/components/macro/header/macro-header.component.scss +++ b/packages/uhk-web/src/app/components/macro/header/macro-header.component.scss @@ -3,6 +3,9 @@ font-size: 0.75em; top: 7px; position: relative; + color: inherit; + text-decoration: none; + border: 0; &:hover { cursor: pointer; @@ -15,6 +18,9 @@ top: 7px; margin-right: 15px; position: relative; + color: inherit; + text-decoration: none; + border: 0; &:hover:not(.disabled) { cursor: pointer; diff --git a/packages/uhk-web/src/app/components/macro/item/macro-item.component.html b/packages/uhk-web/src/app/components/macro/item/macro-item.component.html index 27896356aaa..bbb863e7b59 100644 --- a/packages/uhk-web/src/app/components/macro/item/macro-item.component.html +++ b/packages/uhk-web/src/app/components/macro/item/macro-item.component.html @@ -3,16 +3,33 @@ -
+
- - + + +
@@ -25,9 +42,27 @@ Command: - - - + + +
diff --git a/packages/uhk-web/src/app/components/popover/popover.component.scss b/packages/uhk-web/src/app/components/popover/popover.component.scss index 620da293643..94ceacd8141 100644 --- a/packages/uhk-web/src/app/components/popover/popover.component.scss +++ b/packages/uhk-web/src/app/components/popover/popover.component.scss @@ -90,7 +90,7 @@ position: relative; z-index: 2; - a.active { + .menu-tabs--item.active { border-bottom: 1px solid var(--color-popover-bg-light); } } @@ -99,6 +99,7 @@ .menu-tabs--item { display: flex; align-items: center; + width: 100%; fa-icon { margin-right: 0.25em; diff --git a/packages/uhk-web/src/app/components/popover/tab/macro/macro-tab.component.html b/packages/uhk-web/src/app/components/popover/tab/macro/macro-tab.component.html index 312f44af1e6..4ce749550b1 100644 --- a/packages/uhk-web/src/app/components/popover/tab/macro/macro-tab.component.html +++ b/packages/uhk-web/src/app/components/popover/tab/macro/macro-tab.component.html @@ -31,15 +31,16 @@ - - @@ -53,16 +54,19 @@ -
-
    +