Skip to content

Commit

Permalink
Refs #257521 - Improve texts for label and tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
GhitaB committed Sep 14, 2023
1 parent 1801ba8 commit d9496e0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/editor/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ export const LabelEditorSchema = {
],
properties: {
label_type: {
title: 'Type',
title: 'Type of label',
type: 'string',
factory: 'Choice',
choices: [
['medium', 'Medium importance'],
['high', 'High importance'],
['highlight', 'Highlight'],
],
description: 'Choose a type or leave the default value (No value).',
},
label_pointing: {
title: 'Pointing',
title: 'Label pointing',
type: 'string',
factory: 'Choice',
choices: [
Expand All @@ -38,13 +39,16 @@ export const LabelEditorSchema = {
['left pointing', 'Left'],
['pointing below', 'Down'],
],
description:
'Choose an orientation or leave the default value (No value).',
},
tooltip_content: {
title: 'Content',
title: 'Tooltip content',
widget: 'slate',
description: 'Enter the text you want to display in the tooltip.',
},
tooltip_pointing: {
title: 'Position',
title: 'Tooltip position',
type: 'string',
factory: 'Choice',
choices: [
Expand All @@ -59,7 +63,7 @@ export const LabelEditorSchema = {
],
},
tooltip_type: {
title: 'Type',
title: 'Tooltip type',
type: 'string',
factory: 'Choice',
choices: [
Expand All @@ -70,8 +74,8 @@ export const LabelEditorSchema = {
default: '',
},
always_show: {
title: 'Always show',
description: 'Always show the content label tooltip',
title: 'Always show tooltip',
description: 'Always show the content label tooltip.',
type: 'boolean',
},
},
Expand Down

0 comments on commit d9496e0

Please sign in to comment.