You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Links (**required**) | A list of image links containing four fields for each link: `href`, `text`, `label`, and `image_html`. |
19
-
| Layout | Defaults to `full-width`, with additional options for `50-50`, and `25-75` layout splits. |
20
-
21
-
### Image variations and considerations
22
-
23
-
The `image_html` field can be defined using raw html or using the [Canonical image-template module](https://github.com/canonical/canonicalwebteam.image-template/tree/6ebd34c5967f69ac23c97a24bcf6bd703a1ab7ce) as in the following link example:
Each image is wrapped in a [highlighted image container](/docs/patterns/images#highlighted-image) under the hood. To make correct use of this component the `p-image-container__image` class should be added to each to each image.
44
-
45
-
### Accessibility
46
-
47
-
Each image in this component is wrapped by an `a` tag which includes an `aria-label` defined in the `label` field. Therefore, this is the label screenreaders will read, `alt` text added to the image itself will be ignored by assistive techjonology.
| Layout | Defaults to `full-width`, with additional options for `50-50`, and `25-75` layout splits. |
19
+
| Links (**required**) | An `Array<Object>` of individual image link properties. |
20
+
| Links[].href (**required**) | The target link for the logo. |
21
+
| Links[].text (**required**) | The link text for the logo. |
22
+
| Links[].label (**required**) | The `aria-label` for the logo. |
23
+
| Links[].image_html (**required**) | The logo image element. |
48
24
49
25
## Full width
50
26
@@ -119,7 +95,7 @@ The `vf_linked_logo_section` Jinja macro can be used to generate a linked logo l
119
95
<code>full-wdith</code>
120
96
</td>
121
97
<td>
122
-
The intented grid layout for the section.
98
+
The intended grid layout for the section.
123
99
</td>
124
100
</tr>
125
101
<tr>
@@ -136,7 +112,75 @@ The `vf_linked_logo_section` Jinja macro can be used to generate a linked logo l
136
112
N/A
137
113
</td>
138
114
<td>
139
-
Array of image links, each including <code>href</code>, <code>label</code>, <code>text</code>, and <code>image_html</code> fields.
115
+
Array of image links.
116
+
</td>
117
+
</tr>
118
+
<tr>
119
+
<td>
120
+
<code>links[].href</code>
121
+
</td>
122
+
<td>
123
+
Yes
124
+
</td>
125
+
<td>
126
+
String
127
+
</td>
128
+
<td>
129
+
N/A
130
+
</td>
131
+
<td>
132
+
Target link for the image.
133
+
</td>
134
+
</tr>
135
+
<tr>
136
+
<td>
137
+
<code>links[].text</code>
138
+
</td>
139
+
<td>
140
+
Yes
141
+
</td>
142
+
<td>
143
+
String
144
+
</td>
145
+
<td>
146
+
N/A
147
+
</td>
148
+
<td>
149
+
Logo link text.
150
+
</td>
151
+
</tr>
152
+
<tr>
153
+
<td>
154
+
<code>links[].label</code>
155
+
</td>
156
+
<td>
157
+
Yes
158
+
</td>
159
+
<td>
160
+
String
161
+
</td>
162
+
<td>
163
+
N/A
164
+
</td>
165
+
<td>
166
+
<code>aria-label</code> for the logo link. This attribute is added to the wrapping `a` tag under the hood and it is this label that screenreaders will read. Additional alt text added to the image element will be ignored by assistive techology and as such can be set to null.
167
+
</td>
168
+
</tr>
169
+
<tr>
170
+
<td>
171
+
<code>links[].image_html</code>
172
+
</td>
173
+
<td>
174
+
Yes
175
+
</td>
176
+
<td>
177
+
HTMLImageElement
178
+
</td>
179
+
<td>
180
+
N/A
181
+
</td>
182
+
<td>
183
+
Logo image element. This can be defined using raw HTML or using the <a href="https://github.com/canonical/canonicalwebteam.image-template/">Canonical image-template module</a>. Regardless of how this is initialized, it will need to include the <code>p-image-container__image</code> to comply with the <a href="/docs/patterns/images#highlighted-image">Highlighted image pattern</a> which wraps each link item under the hood.
140
184
</td>
141
185
</tr>
142
186
</tbody>
@@ -153,9 +197,14 @@ Jinja template.
153
197
154
198
```jinja
155
199
{% raw -%}
156
-
{% from "_macros/vf_linked_logo_section.jinja" import vf_linked_logo_section %}
200
+
{% from "_macros/vf_linked-logo-section.jinja" import vf_linked_logo_section %}
157
201
{%- endraw -%}
158
202
```
159
203
160
204
View the [building with Jinja macros guide](/docs/building-vanilla#jinja-macros)
161
205
for macro installation instructions.
206
+
207
+
### SCSS
208
+
209
+
Since Patterns leverage many other parts of Vanilla in their composition and content, we
210
+
recommend [importing the entirety of Vanilla](/docs#install) for full support.
0 commit comments