Skip to content

Commit

Permalink
fix: improve explanatory titles on color picker and boolean toggle wh…
Browse files Browse the repository at this point in the history
…en readOnly
  • Loading branch information
josdejong committed Jan 29, 2022
1 parent 4971138 commit aac632b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/plugins/value/components/BooleanToggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div
class="boolean-toggle"
on:mousedown={toggleBooleanValue}
title={!readOnly ? 'Click to toggle this boolean value' : undefined}
title={!readOnly ? 'Click to toggle this boolean value' : `Boolean value ${value}`}
>
<Icon data={value === true ? faCheckSquare : faSquare} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/plugins/value/components/ColorPicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<button
class="jse-color"
style="background: {color}"
title={!readOnly ? 'Click to open a color picker' : undefined}
title={!readOnly ? 'Click to open a color picker' : `Color ${value}`}
on:click={openColorPicker}
/>

Expand Down

0 comments on commit aac632b

Please sign in to comment.