Skip to content

Commit fe2676e

Browse files
DrJKLgithub-actions
andauthored
A11y: Focus ring for widgets (#7167)
## Summary Addresses #7165 Add focus state to widget inputs (including textarea) ## Screenshot <img width="912" height="688" alt="image" src="https://github.com/user-attachments/assets/329b1747-1c16-499c-9a17-58332d731c35" /> <!-- Add screenshots or video recording to help explain your changes --> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7167-A11y-Focus-ring-for-widgets-2bf6d73d365081b9805ef5921c1d9b6e) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <[email protected]>
1 parent ab777bc commit fe2676e

File tree

7 files changed

+5
-2
lines changed

7 files changed

+5
-2
lines changed
-409 Bytes
Loading
-174 Bytes
Loading
-297 Bytes
Loading
-323 Bytes
Loading
-287 Bytes
Loading

src/renderer/extensions/vueNodes/widgets/components/WidgetTextarea.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<FloatLabel variant="in">
2+
<FloatLabel
3+
variant="in"
4+
class="rounded-lg space-y-1 focus-within:ring ring-component-node-widget-background-highlighted transition-all"
5+
>
36
<Textarea
47
v-bind="filteredProps"
58
:id

src/renderer/extensions/vueNodes/widgets/components/layout/WidgetLayoutField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const hideLayoutField = inject<boolean>('hideLayoutField', false)
2929
<!-- basis-full grow -->
3030
<div class="relative min-w-0 flex-1">
3131
<div
32-
class="cursor-default min-w-0"
32+
class="cursor-default min-w-0 rounded-lg space-y-1 focus-within:ring ring-component-node-widget-background-highlighted transition-all"
3333
@pointerdown.stop="noop"
3434
@pointermove.stop="noop"
3535
@pointerup.stop="noop"

0 commit comments

Comments
 (0)