Skip to content

Commit 89076c4

Browse files
author
Adam Argyle
committed
nudge which tools have labels and if on hover or not
1 parent 0d0ecff commit 89076c4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/features/selectable.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,12 @@ export function Selectable(visbug) {
397397
overlayHoverUI({
398398
el: $target,
399399
// no_hover: tool === 'guides',
400-
no_label: tool !== 'guides',
400+
no_label:
401+
tool === 'guides'
402+
|| tool === 'accessibility'
403+
|| tool === 'margin'
404+
|| tool === 'padding'
405+
|| tool === 'inspector',
401406
})
402407

403408
if (tool === 'guides' && selected.length >= 1 && !selected.includes($target)) {
@@ -430,7 +435,7 @@ export function Selectable(visbug) {
430435
overlayMetaUI({
431436
el,
432437
id,
433-
no_label: tool !== 'inspector' && tool !== 'accessibility',
438+
no_label: tool === 'inspector' || tool === 'guides' || tool === 'accessibility',
434439
})
435440

436441
selected.unshift(el)

0 commit comments

Comments
 (0)