Skip to content

Commit cb62419

Browse files
authored
Update documentation for Components icons (#1730)
* Add dark mode screenshots * Update light mode screenshots * Update screenshots calls in the text * Mention search for icon when creating a new component * Add crisper screenshots for components creation * Mention icon is optional
1 parent 91da030 commit cb62419

File tree

8 files changed

+23
-4
lines changed

8 files changed

+23
-4
lines changed

docusaurus/docs/user-docs/content-manager/writing-content.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,21 @@ Unlike regular fields, the order of the entries of a repeatable component is imp
8282

8383
Dynamic zones are a combination of components, which themselves are composed of several fields. Writing the content of a dynamic zone requires additional steps in order to access the fields.
8484

85-
<img src="/img/assets/content-manager/edit-view_dynamic-zone-1.png" alt="Writing content for a dynamic zone" width="80%" />
86-
<img src="/img/assets/content-manager/edit-view_dynamic-zone-2.png" alt="Writing content for a dynamic zone" width="80%" />
85+
<ThemedImage
86+
alt="Writing content for a dynamic zone"
87+
sources={{
88+
light: '/img/assets/content-manager/edit-view_dynamic-zone-1.png',
89+
dark: '/img/assets/content-manager/edit-view_dynamic-zone-1_DARK.png',
90+
}}
91+
/>
92+
93+
<ThemedImage
94+
alt="Writing content for a dynamic zone"
95+
sources={{
96+
light: '/img/assets/content-manager/edit-view_dynamic-zone-2.png',
97+
dark: '/img/assets/content-manager/edit-view_dynamic-zone-2_DARK.png',
98+
}}
99+
/>
87100

88101
1. Click on the ![Add icon](/img/assets/icons/add_circle.svg) **Add a component to [dynamic zone name]** button.
89102
2. Choose a component available for the dynamic zone.

docusaurus/docs/user-docs/content-type-builder/creating-new-content-type.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ New content-types are only considered created once they have been saved. Saving
4040

4141
## Creating a new component
4242

43-
![Component creation](/img/assets/content-type-builder/component-creation-1.png)
43+
<ThemedImage
44+
alt="Component creation"
45+
sources={{
46+
light: '/img/assets/content-type-builder/component-creation-1.png',
47+
dark: '/img/assets/content-type-builder/component-creation-1_DARK.png',
48+
}}
49+
/>
4450

4551
Components are created from the same-named category of the Content-type Builder's sub navigation.
4652

@@ -50,7 +56,7 @@ To create a new component:
5056
2. In the component creation window, configure the base settings of the new component:
5157
- Write the name of the component in the *Name* textbox.
5258
- Select an available category, or enter in the textbox a new category name to create one.
53-
- Choose an icon to represent the new component.
59+
- _(optional)_ Choose an icon representing the new component. You can use the search ![Search icon](/img/assets/icons/search.svg) to find an icon instead of scrolling through the list.
5460
3. Click on the **Continue** button.
5561
4. Add and configure chosen fields for your component (see [Configuring fields for content-types](/user-docs/content-type-builder/configuring-fields-content-type)).
5662
5. Click on the **Save** button.
16.8 KB
Loading
68.9 KB
Loading
86.7 KB
Loading
176 KB
Loading
47.8 KB
Loading
120 KB
Loading

0 commit comments

Comments
 (0)