Skip to content

Commit fa18247

Browse files
replace "full" with "default"
1 parent 17e42d9 commit fa18247

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

templates/_macros/vf_logo-section.jinja

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@
3535
- logo-block: Configuration for a logo block. Must include:
3636
- item.logos (array): A list of logos to display.
3737
- top_rule_variant (string) (optional): The variant of the top rule to apply. Options are "default", "none". Default is "default".
38-
- mode (string) (optional): The layout mode. Allowed values: "full" or "minimal".
39-
"full" (default): renders a <section> as the root element, and includes title, description and cta (suitable when used standalone).
38+
- mode (string) (optional): The layout mode. Allowed values: "default" or "minimal".
39+
"default": renders a <section> as the root element, and includes title, description and cta (suitable when used standalone).
4040
"minimal": renders a <div> as the root element, and does not render title, description and cta (suitable when used inside another section).
41-
If an unknown value is provided, default behavior is "full".
4241
4342
Slots
4443
- description (optional): Paragraph-style content displayed below the title. Can include one or more paragraphs.
4544
#}
46-
{%- macro vf_logo_section(title, padding="default", blocks=[], top_rule_variant="default", mode="full", caller=None) -%}
45+
{%- macro vf_logo_section(title, padding="default", blocks=[], top_rule_variant="default", mode="default", caller=None) -%}
4746
{% set description_content = caller('description') %}
4847
{% set has_description = description_content|trim|length > 0 %}
4948
{%- set padding = padding | trim -%}
@@ -62,8 +61,8 @@
6261
{%- set top_rule_variant = "default" -%}
6362
{%- endif -%}
6463
{%- set mode = mode | trim -%}
65-
{%- if mode not in ["full", "minimal"] -%}
66-
{%- set mode = "full" -%}
64+
{%- if mode not in ["default", "minimal"] -%}
65+
{%- set mode = "default" -%}
6766
{%- endif -%}
6867
{%- macro _title_block(title={}) -%}
6968
<h2 class="p-text--small-caps">
@@ -85,7 +84,7 @@
8584
{%- set rootElement = "div" if mode == "minimal" else "section" -%}
8685

8786
<{{ rootElement }}{%- if padding != 'none' %} class="{{ padding_classes }}"{% endif %}>
88-
{%- if mode == "full" -%}
87+
{%- if mode == "default" -%}
8988
{%- if top_rule_variant == "default" -%}
9089
<hr class="p-rule is-fixed-width" />
9190
{%- endif -%}

templates/docs/examples/patterns/logo-section/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% set is_paper = true %}
66
{% block content %}
77
{% call(slot) vf_logo_section(
8-
mode="full",
8+
mode="default",
99
title={
1010
"text": "The quick brown fox jumps over the lazy dog"
1111
},

templates/docs/patterns/logo-section/index.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ View example of the logo section pattern without CTA block
146146
View example of the logo section pattern without description and CTA block
147147
</a></div>
148148

149-
#### Full vs Minimal mode
149+
#### Default vs Minimal mode
150150

151-
Use the <code>mode</code> parameter to control how much content the pattern renders. Two modes are supported: "full" and "minimal".
151+
Use the <code>mode</code> parameter to control how much content the pattern renders. Two modes are supported: "default" and "minimal".
152152

153-
- full (default)
153+
- default
154154

155155
- Renders the title with a top rule, description, CTA, and logo block.
156156
- Renders the root element as a <code>&lt;section&gt;</code>
@@ -164,13 +164,13 @@ Usage
164164

165165
- Add the mode property at the pattern level when invoking the macro.
166166

167-
Example: full
167+
##### Example: default
168168

169169
```json
170170
{
171-
"title": {"text": "Trusted by organisations worldwide"},
172-
"mode": "full",
173-
"description": "<p>We power the digital services of many public sector organisations.</p>",
171+
"title": {"text": "Trusted by organizations worldwide"},
172+
"mode": "default",
173+
"description": "<p>We power the digital services of many public sector organizations.</p>",
174174
"blocks": [
175175
{"type": "logo-block", "item": {"logos": [{"attrs": {"src": "logo.png", "alt": "Org"}}]}},
176176
{"type": "cta-block", "item": {"link": {"content_html": "Learn more", "attrs": {"href": "/about"}}}}
@@ -179,14 +179,14 @@ Example: full
179179
```
180180

181181
<div class="embedded-example"><a href="/docs/examples/patterns/logo-section/default" class="js-example" data-lang="jinja">
182-
View example of the "full" mode Logo section
182+
View example of the "default" mode Logo section
183183
</a></div>
184184

185-
Example: minimal
185+
##### Example: minimal
186186

187187
```json
188188
{
189-
"title": {"text": "Trusted by organisations worldwide"},
189+
"title": {"text": "Trusted by organizations worldwide"},
190190
"mode": "minimal",
191191
"blocks": [{"type": "logo-block", "item": {"logos": [{"attrs": {"src": "logo.png", "alt": "Org"}}]}}]
192192
}
@@ -330,16 +330,16 @@ below.
330330
</td>
331331
<td>
332332
One of:<br>
333-
<code>'full'</code>,<br>
333+
<code>'default'</code>,<br>
334334
<code>'minimal'</code>
335335
</td>
336336
<td>
337-
<code>'full'</code>
337+
<code>'default'</code>
338338
</td>
339339
<td>
340340
Layout for the pattern.
341341
<ul>
342-
<li>"full" (default): renders a &lt;section&gt; as the root element, and renders title, description and cta (suitable when used standalone).</li>
342+
<li>"default": renders a &lt;section&gt; as the root element, and renders title, description and cta (suitable when used standalone).</li>
343343
<li>"minimal": renders a &lt;div&gt; as the root element, and does not render title, description and cta (suitable when used inside another section).</li>
344344
</ul>
345345
</td>

0 commit comments

Comments
 (0)