Skip to content

Commit a5e361e

Browse files
committed
fix various a11y issues
1 parent 3214dee commit a5e361e

File tree

15 files changed

+40
-21
lines changed

15 files changed

+40
-21
lines changed

src/renderer/attribute/impl/angle.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
[v/form-input k v attrs]
1313
[:> Popover/Root {:modal true}
1414
[:> Popover/Trigger
15-
{:class "form-control-button"}
15+
{:title "Pick angle"
16+
:class "form-control-button"}
1617
[ui/icon "degrees"]]
1718
[:> Popover/Portal
1819
[:> Popover/Content

src/renderer/attribute/impl/color.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
{:as-child true
2222
:disabled disabled}
2323
[:button.button.color-drip.inline-block
24-
{:style {:border "5px solid var(--bg-primary)"
24+
{:title "Pick color"
25+
:style {:border "5px solid var(--bg-primary)"
2526
:background v}}]]
2627
[:> Popover/Portal
2728
[:> Popover/Content

src/renderer/attribute/impl/d.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@
139139
(when v
140140
[:> Popover/Root {:modal true}
141141
[:> Popover/Trigger
142-
{:class "form-control-button"}
142+
{:title "Edit path"
143+
:class "form-control-button"}
143144
[ui/icon "pencil"]]
144145
[:> Popover/Portal
145146
[:> Popover/Content {:sideOffset 5

src/renderer/attribute/impl/font_family.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
(when (and state (empty? suggestions))
5151
(rf/dispatch [::app.e/query-local-fonts])))}
5252
[:> Popover/Trigger
53-
{:class "form-control-button"
53+
{:title "Select font"
54+
:class "form-control-button"
5455
:disabled (:disabled attrs)}
5556
[ui/icon "magnifier"]]
5657
[:> Popover/Portal

src/renderer/attribute/impl/length.cljs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
[:div.flex.gap-px
4242
[:button.form-control-button
4343
{:disabled disabled
44+
:title "Decrease"
4445
:on-pointer-down #(rf/dispatch [::element.e/update-attr k - 1])}
4546
[ui/icon "minus"]]
4647
[:button.form-control-button
4748
{:disabled disabled
49+
:title "Increase"
4850
:on-click #(rf/dispatch [::element.e/update-attr k + 1])}
4951
[ui/icon "plus"]]]])
5052

src/renderer/attribute/impl/points.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
[points]
4242
[:> Popover/Root {:modal true}
4343
[:> Popover/Trigger
44-
{:class "form-control-button"}
44+
{:title "Edit points"
45+
:class "form-control-button"}
4546
[ui/icon "pencil"]]
4647
[:> Popover/Portal
4748
[:> Popover/Content

src/renderer/attribute/views.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
:disabled disabled}
131131
[:> Select/Trigger
132132
{:class "form-control-button"
133-
:aria-label (name k)}
133+
:aria-label (str "Select " (name k))}
134134
[:> Select/Value ""]
135135
[:> Select/Icon
136136
[ui/icon "chevron-down"]]]

src/renderer/document/views.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
[:> DropdownMenu/Trigger
143143
{:as-child true}
144144
[:button.button.flex.items-center.justify-center.aria-expanded:overlay.px-2.font-mono.rounded
145+
{:aria-label "More document actions"}
145146
[ui/icon "ellipsis-h"]]]
146147
[:> DropdownMenu/Portal
147148
[:> DropdownMenu/Content

src/renderer/snap/views.cljs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
(let [options @(rf/subscribe [::snap.s/options])]
1717
[:> DropdownMenu/Root
1818
[:> DropdownMenu/Trigger
19-
{:aria-label "Snap"
20-
:as-child true}
19+
{:as-child true}
2120
[:div.h-full.flex.items-center
22-
{:class "hover:pb-1"}
21+
{:role "button"
22+
:title "Snap options"
23+
:class "hover:pb-1"}
2324
[ui/icon "chevron-up"]]]
2425
[:> DropdownMenu/Portal
2526
[:> DropdownMenu/Content

src/renderer/theme/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--text-2xs--line-height: 14px;
1010
--transition-property-fill: fill;
1111

12-
--color-accent: #e93976;
12+
--color-accent: #d12b65;
1313
--color-accent-inverted: #fff;
1414
}
1515

0 commit comments

Comments
 (0)