File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
packages/components/bolt-image Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ npm install @bolt/components-image
8
8
9
9
## Image sizes
10
10
11
+ ** IMPORTANT: This method of adding classes to images is DEPRECATED.**
12
+
11
13
To specify image size (e.g ` u-bolt-width-1/1 ` ) pass the correct class like so:
12
14
13
15
```
Original file line number Diff line number Diff line change 1
1
title : Image
2
2
type : object
3
+ not :
4
+ required :
5
+ - imageAttributes
3
6
anyOf :
4
7
- required :
5
8
- src
@@ -73,3 +76,7 @@ properties:
73
76
enum :
74
77
- true
75
78
- false
79
+ imageAttributes :
80
+ title : DEPRECATED
81
+ type : object
82
+ description : A Drupal-style attributes object with extra attributes to append to this component.
Original file line number Diff line number Diff line change 62
62
lazyload ? " js-lazyload" : " "
63
63
] %}
64
64
65
- {% set image_attributes = create_attribute(image_attributes | default({})).addClass(image_classes , lazyload_classes )
65
+ {% set image_attributes = create_attribute(imageAttributes | default({})).addClass(image_classes , lazyload_classes )
66
66
.setAttribute(' alt' , alt )
67
67
.setAttribute( (lazyload ? " data-" : null ) ~ " srcset" , srcset ? srcset : null )
68
68
.setAttribute( (lazyload ? " data-" : null ) ~ " sizes" , sizes )
You can’t perform that action at this time.
0 commit comments