Skip to content

Commit ee06057

Browse files
chore: adding tooltips to the shadow settings
1 parent fb84017 commit ee06057

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

shesha-reactjs/src/designer-components/text/settingsForm.ts

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -824,35 +824,48 @@ export const getSettings = (data: any) => {
824824
id: 'shadowStyleRow-offsetX',
825825
label: 'Offset X',
826826
hideLabel: true,
827+
tooltip: 'Offset X',
827828
width: 80,
828-
icon: 'offsetHorizontalIcon',
829+
icon: "offsetHorizontalIcon",
829830
propertyName: 'shadow.offsetX',
830-
},
831-
{
831+
},
832+
{
832833
type: 'numberField',
833834
id: 'shadowStyleRow-offsetY',
834835
label: 'Offset Y',
835836
hideLabel: true,
837+
tooltip: 'Offset Y',
836838
width: 80,
837839
icon: 'offsetVerticalIcon',
838840
propertyName: 'shadow.offsetY',
839-
},
840-
{
841+
},
842+
{
841843
type: 'numberField',
842844
id: 'shadowStyleRow-blurRadius',
843845
label: 'Blur',
844846
hideLabel: true,
847+
tooltip: 'Blur Radius',
845848
width: 80,
846849
icon: 'blurIcon',
847850
propertyName: 'shadow.blurRadius',
848-
},
849-
{
851+
},
852+
{
853+
type: 'numberField',
854+
id: 'shadowStyleRow-spreadRadius',
855+
label: 'Spread',
856+
hideLabel: true,
857+
tooltip: 'Spread Radius',
858+
width: 80,
859+
icon: 'spreadIcon',
860+
propertyName: 'shadow.spreadRadius',
861+
},
862+
{
850863
type: 'colorPicker',
851864
id: 'shadowStyleRow-color',
852865
label: 'Color',
853866
hideLabel: true,
854867
propertyName: 'shadow.color',
855-
},
868+
},
856869
],
857870
})
858871
.toJson(),

shesha-reactjs/src/designer-components/text/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const defaultStyles = (textType: string): IStyleType => {
9494
type: 'Segoe UI',
9595
size: textType === 'title' ? undefined : 14
9696
},
97-
background: { type: 'color', color: 'transparent' },
97+
background: { type: 'color', color: '#fff' },
9898
border: {
9999
border: {
100100
all: {

0 commit comments

Comments
 (0)