Skip to content

Commit

Permalink
Update lib.ftd: Added ftd.desktop and ftd.mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal authored May 9, 2023
1 parent 3190c41 commit da3f033
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions lib.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,11 @@ width: $metrics-card.width


-- component features-card:
children fearures-wrap:
children features-wrap:
integer width: $width

-- lib3.features-card:
fearures-wrap: $features-card.fearures-wrap
features-wrap: $features-card.features-wrap
width: $features-card.width

-- end: features-card
Expand Down Expand Up @@ -1518,16 +1518,22 @@ boolean is-active:

-- ftd.column:

-- ftd.desktop:

-- subsections-links-desktop: $subsections-links.title
if: { ftd.device != "mobile" }
item: $subsections-links.item
url: $subsections-links.url
is-active: $subsections-links.is-active

-- end: ftd.desktop

-- ftd.mobile:

-- subsections-links-mobile:
if: { ftd.device == "mobile" }
item: $subsections-links.item

-- end: ftd.mobile

-- end: ftd.column

-- end: subsections-links
Expand Down Expand Up @@ -1604,14 +1610,21 @@ pr.toc-item item:

-- ftd.column:

-- ftd.desktop:

-- subsections-items-desktop:
if: { ftd.device != "mobile" }
item: $subsections-items.item

-- end: ftd.desktop


-- ftd.mobile:

-- subsections-items-mobile:
if: { ftd.device == "mobile" }
item: $subsections-items.item

-- end: ftd.mobile

-- end: ftd.column

-- end: subsections-items
Expand Down

0 comments on commit da3f033

Please sign in to comment.