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
Copy file name to clipboardExpand all lines: docs/configurations/iconography.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Page Builder references these icons by their class names. For example, Page Buil
20
20
...>
21
21
```
22
22
23
-
Page Builder's Heading also references three more icons in its toolbar as defined in `Magento/PageBuilder/view/adminhtml/web/js/content-type/heading/preview.js` shown here:
23
+
Page Builder's Heading also references three more icons in its toolbar as defined in `Magento/PageBuilder/view/adminhtml/web/js/content-type/heading/preview.js`, shown here:
24
24
25
25
```js
26
26
{
@@ -90,9 +90,9 @@ Add all your SVG and/or PNG icons to the `adminhtml/web/css/images` directory fo
90
90
91
91
## Create CSS classes
92
92
93
-
As discussed earlier in this topic, Page Builder references its icon fonts using class names from a variety of locations, such as the panel, the toolbar, and the visual selectors within forms. Creating your own CSS classes for the SVG and PNG images you plan on referencing by class name is required if you want to participate in Page Builder's system of CSS class references.
93
+
As discussed earlier in this topic, Page Builder references its icon fonts using class names from a variety of locations, such as the panel, the toolbar, and the visual selectors within forms. To participate in this icon system, you need to create a CSS class for each SVG and/or PNG image you want to reference by class name.
94
94
95
-
Add the CSS classes for your icons to your LESS file in `adminhtml` (and to the `frontend` LESS file, if relevant) as shown here:
95
+
Add the CSS classes for your icons to your LESS file in `adminhtml` (and to the `frontend` LESS file if relevant), as shown here:
|`class name`| To match the class names of Page Builder's native icons, we recommend prefixing your icon names with `icon-pagebuilder`, as we have done with the Quote panel icon. |
114
-
|`background-image url`| The `url` used for the `background-image` is the most critical part of your own CSS classes. Always use the `@{baseDir}` variable followed by your full module name, followed by the path to your image, starting with `css`. When deployed, Page Builder creates a link in the static output where the browser can resolve it as described below. |
114
+
|`background-image url`| The `url` used for the `background-image` is the most critical part of your own CSS classes. Always use the `@{baseDir}` variable followed by your full module name, followed by the path to your image, starting with `css`. When deployed, Page Builder creates a link in the static output where the browser can resolve it, as described below. |
115
115
|`width`| Sets the width of the icon image. |
116
116
|`height`| Sets the height of the icon image. |
117
117
118
-
When deployed, your CSS classes and links to your icons are generated in `pub/static` as shown here:
118
+
When deployed, your CSS classes and links to your icons are generated in `pub/static`, as shown here:
0 commit comments