Skip to content

Commit

Permalink
Merge pull request #25 from FifthTry/new-design-component-added
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
gsalunke authored Apr 10, 2023
2 parents 31c0ab4 + 5e889cf commit ca871fc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions component-lib/lib4.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,9 @@ caption title:
body info:
integer width: $width
optional ftd.color bgcolor: $inherited.colors.background.step-1
optional string cta-text:
optional string cta-link:
optional string cta-role:

-- ftd.column:
width: fill-container
Expand All @@ -953,13 +956,19 @@ image: $hosting-hero.image
info: $hosting-hero.info
width: $hosting-hero.width
bgcolor: $hosting-hero.bgcolor
cta-text: $hosting-hero.cta-text
cta-link: $hosting-hero.cta-link
cta-role: $hosting-hero.cta-role

-- hosting-hero-mobile: $hosting-hero.title
if: { ftd.device == "mobile"}
image: $hosting-hero.image
info: $hosting-hero.info
width: $hosting-hero.width
bgcolor: $hosting-hero.bgcolor
cta-text: $hosting-hero.cta-text
cta-link: $hosting-hero.cta-link
cta-role: $hosting-hero.cta-role

-- end: ftd.column

Expand All @@ -980,6 +989,9 @@ caption title:
body info:
integer width:
optional ftd.color bgcolor:
optional string cta-text:
optional string cta-link:
optional string cta-role:

-- ftd.column:
width: fill-container
Expand Down Expand Up @@ -1011,6 +1023,10 @@ text: $hosting-hero-desktop.info
role: $inherited.types.copy-large
color: $inherited.colors.text-strong

-- lib5.cta-button: $hosting-hero-desktop.cta-text
role: $hosting-hero-desktop.cta-role
link: $hosting-hero-desktop.cta-link

-- end: ftd.column

-- end: ftd.column
Expand Down Expand Up @@ -1048,6 +1064,9 @@ caption title:
body info:
integer width:
optional ftd.color bgcolor:
optional string cta-text:
optional string cta-link:
optional string cta-role:

-- ftd.column:
width: fill-container
Expand Down Expand Up @@ -1078,6 +1097,10 @@ text: $hosting-hero-mobile.info
role: $inherited.types.copy-regular
color: $inherited.colors.text-strong

-- lib5.cta-button: $hosting-hero-mobile.cta-text
role: $hosting-hero-mobile.cta-role
link: $hosting-hero-mobile.cta-link

-- end: ftd.column

-- end: ftd.column
Expand Down
8 changes: 6 additions & 2 deletions lib.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -2184,14 +2184,18 @@ caption title:
body info:
integer width: $width
optional ftd.color bgcolor: $inherited.colors.background.step-1

optional string cta-text:
optional string cta-link:
optional string cta-role:

-- lib4.hosting-hero: $hosting-hero.title
image: $hosting-hero.image
info: $hosting-hero.info
width: $hosting-hero.width
bgcolor: $hosting-hero.bgcolor

cta-text: $hosting-hero.cta-text
cta-link: $hosting-hero.cta-link
cta-role: $hosting-hero.cta-role

-- end: hosting-hero

Expand Down

0 comments on commit ca871fc

Please sign in to comment.