Skip to content

Commit 8f27573

Browse files
committed
remove tooltip arrow and enhance outline styles
1 parent 2ce0043 commit 8f27573

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

src/renderer/styles.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,14 @@
120120
color: var(--font-color-hovered);
121121
}
122122

123-
&:focus:not(:active) {
123+
&:focus {
124124
@apply outline outline-1 outline-offset-1 outline-accent;
125125
}
126126

127+
&:active {
128+
@apply outline-none;
129+
}
130+
127131
&.selected {
128132
@apply bg-accent !important;
129133
color: var(--accent-inverted);
@@ -427,7 +431,6 @@ pre {
427431
}
428432

429433
.popover-arrow,
430-
.tooltip-arrow,
431434
.menu-arrow {
432435
fill: var(--bg-secondary);
433436
}

src/renderer/theme/styles.css

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
--background-warning: #ffc252;
6161
--background-success: #63c263;
6262
.popover-arrow,
63-
.tooltip-arrow,
6463
.menu-arrow {
6564
fill: var(--bg-primary);
6665
}

src/renderer/toolbar/tools.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
:sideOffset 5
2929
:side "top"}
3030
[:div.flex.gap-2.items-center
31-
(str/capitalize (name type))]
32-
[:> Tooltip/Arrow {:class "tooltip-arrow"}]]]])))
31+
(str/capitalize (name type))]]]])))
3332

3433
(defn group
3534
[group]

src/renderer/toolbar/views.cljs

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@
2424
:side "left"
2525
:sideOffset 5}
2626
[:div.flex.gap-2.items-center
27-
title]
28-
[:> Tooltip/Arrow
29-
{:class "tooltip-arrow"}]]]]))
27+
title]]]]))

src/renderer/tree/styles.css

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,24 @@
1616
@apply overlay;
1717
}
1818

19-
&:focus:not(:active) {
19+
&:focus {
2020
@apply outline-none outline-shadow;
2121
}
2222

23+
&:active {
24+
@apply shadow-none;
25+
}
26+
2327
.button {
2428
@apply mx-px shrink-0;
2529
height: 20px;
2630
width: 20px;
2731
color: inherit;
2832
background-color: transparent !important;
33+
34+
&:focus {
35+
@apply outline-none;
36+
}
2937
}
3038
}
3139

0 commit comments

Comments
 (0)