File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
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+ Add { blockParentName }
6484 </ button >
6585 </ div >
6686 ) ;
Original file line number Diff line number Diff 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 : 8 px 16 px 8 px 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;
You can’t perform that action at this time.
0 commit comments