Skip to content

Commit

Permalink
format migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Oct 7, 2024
1 parent 9c217a1 commit 243b202
Showing 1 changed file with 46 additions and 39 deletions.
85 changes: 46 additions & 39 deletions migration_guides/70.x.x-to-71.0.0-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ This section will list the changes that will impact more than one component
}
})
}}
NEW
{{
onsHeader({
Expand Down Expand Up @@ -196,12 +197,12 @@ This section will list the changes that will impact more than one component
OLD
<div
class="ons-header__grid-top ons-grid ons-grid--flex ons-grid--between ons-grid--vertical-center ons-grid--no-wrap ons-grid--gutterless"
>
NEW
<div
class="ons-header__grid-top ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center ons-grid-flex--no-wrap ons-grid--gutterless"
></div>
</div>
></div>

NEW
<div
class="ons-header__grid-top ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center ons-grid-flex--no-wrap ons-grid--gutterless"
></div>
```

</details>
Expand Down Expand Up @@ -249,15 +250,15 @@ This section will list all the changes that are specific to one component.
OLD
{% from "components/onsMetadata/_macro.njk" import onsMetadata %}

{{-
{{
onsMetadata({ ... })
}}

NEW
{% from "components/description-list/_macro.njk" import onsDescriptionList %}

{{
onsDescriptionList({ ... })
onsDescriptionList({ ... })
}}
```

Expand Down Expand Up @@ -293,6 +294,7 @@ This section will list all the changes that are specific to one component.
}
})
}}

SUGGESTED REPLACEMENT
{% from "components/button/_macro.njk" import onsButton %}

Expand Down Expand Up @@ -358,11 +360,12 @@ This section will list all the changes that are specific to one component.
{{
onsMessageList({
"messages": [{
"url": "#0",
"subject": "survey response query",
"url": "#0",
"subject": "survey response query",
}]
})
}}

NEW
{{
onsMessageList({
Expand Down Expand Up @@ -401,6 +404,7 @@ This section will list all the changes that are specific to one component.
"poweredBy": "<svg></svg>"
})
}}

NEW
{{
onsFooter({
Expand Down Expand Up @@ -436,19 +440,19 @@ This section will list all the changes that are specific to one component.
OLD
{{-
onsFooter({
"OGLLink": {
"link": "www.google.com"
}
})
"OGLLink": {
"link": "www.google.com"
}
})
}}

NEW
{{
onsFooter({
"OGLLink": {
"text": "www.google.com"
}
})
"oglLink": {
"text": "www.google.com"
}
})
}}
```

Expand Down Expand Up @@ -632,6 +636,7 @@ This section will list all the changes that are specific to one component.
]
})
}}

NEW
{{
onsSummary({
Expand Down Expand Up @@ -699,6 +704,7 @@ This section will list all the changes that are specific to one component.
"titleTag": "h3"
})
}}

NEW
{{
onsTimeline({
Expand Down Expand Up @@ -855,21 +861,21 @@ This section will list all the changes that are specific to one component.
"url": '#0'
"headingLevel": 2,
"titleClasses": "random-class"
},
"body":{
"id": 'text',
"text": 'How we keep your data safe and what happens to your personal information.',
"itemsList": [
{
"url": '#0',
"text": 'List item 1 about the census'
},
{
"url": '#0',
"text": 'List item 2 about the census'
}
]
}
},
"body":{
"id": 'text',
"text": 'How we keep your data safe and what happens to your personal information.',
"itemsList": [
{
"url": '#0',
"text": 'List item 1 about the census'
},
{
"url": '#0',
"text": 'List item 2 about the census'
}
]
}
})
}}
```
Expand Down Expand Up @@ -936,24 +942,25 @@ This section will list all the changes that are specific to one component.
"itemsList": [{
"title": "Section 1"
"anchors": [{
"title": "Sub section 1"
}]
"title": "Sub section 1"
}]
}]
})
}]
})
}}

NEW
{{
onsSectionNavigation({
"sections":[{
"itemsList": [{
"text": "Section 1"
"anchors": [{
"text": "Sub section 1"
}]
"text": "Sub section 1"
}]
}]
})
}]
})
}}
```

Expand Down

0 comments on commit 243b202

Please sign in to comment.