Skip to content

Commit 8122192

Browse files
chore(VE-6918/error-text): warning message improved
1 parent 95fb850 commit 8122192

2 files changed

Lines changed: 37 additions & 5 deletions

File tree

src/visualBuilder/components/emptyBlock.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,18 @@ export function EmptyBlock(props: EmptyBlockProps): JSX.Element {
4646
visualBuilderStyles()["visual-builder__empty-block-title"]
4747
)}
4848
>
49-
There are no {blockParentName.toLowerCase()} on this page yet. Click the button below to add one.
49+
This page doesn’t have any{" "}
50+
<span
51+
className={classNames(
52+
"visual-builder__empty-block-field-name",
53+
visualBuilderStyles()[
54+
"visual-builder__empty-block-field-name"
55+
]
56+
)}
57+
>
58+
{blockParentName.toLowerCase()}
59+
</span>{" "}
60+
added. Click the button below to add one.
5061
</div>
5162
<button
5263
className={classNames(
@@ -59,8 +70,17 @@ export function EmptyBlock(props: EmptyBlockProps): JSX.Element {
5970
type="button"
6071
data-testid="visual-builder__empty-block-add-button"
6172
>
62-
<i className="fas fa-plus"></i> &nbsp;
63-
{blockParentName}
73+
<span
74+
className={classNames(
75+
"visual-builder__empty-block-plus-icon",
76+
visualBuilderStyles()[
77+
"visual-builder__empty-block-plus-icon"
78+
]
79+
)}
80+
>
81+
+
82+
</span>
83+
&nbsp; Add {blockParentName}
6484
</button>
6585
</div>
6686
);

src/visualBuilder/visualBuilder.style.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ export function visualBuilderStyles() {
121121
visibility: visible;
122122
}
123123
`,
124+
"visual-builder__empty-block-plus-icon": css`
125+
font-size: 22px;
126+
font-weight: 300;
127+
display: flex;
128+
align-items: center;
129+
justify-content: center;
130+
`,
124131
"visual-builder__overlay--outline": css`
125132
position: absolute;
126133
outline: 4px solid #715cdd;
@@ -571,19 +578,24 @@ export function visualBuilderStyles() {
571578
line-height: 100%;
572579
color: #647696;
573580
`,
581+
"visual-builder__empty-block-field-name": css`
582+
font-weight: 700;
583+
`,
574584
"visual-builder__empty-block-add-button": css`
575585
height: 32px;
576586
border-radius: 4px;
577587
background: #f9f8ff;
578588
border-color: #6c5ce7;
579589
border-width: 1px;
580-
padding: 8px 16px 8px 16px;
590+
padding: 0 16px;
581591
font-size: 0.9rem;
582592
font-family: Inter;
583593
font-weight: 600;
584594
color: #6c5ce7;
585-
padding-block: 0px;
586595
letter-spacing: 0.01rem;
596+
display: inline-flex;
597+
align-items: center;
598+
justify-content: center;
587599
`,
588600
"visual-builder__hover-outline": css`
589601
position: absolute;

0 commit comments

Comments
 (0)