Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Peters 584b2487a1
Merge 6034efb8ce into 121ae82326 2023-08-06 07:01:35 -04:00
Alex Peters 6034efb8ce
doc: add extra_styles/config template notes
- State that `extra_styles` are not merged in config template usage.
- Suggest a workaround.
2023-06-29 15:14:22 +10:00
1 changed files with 8 additions and 0 deletions

View File

@ -629,6 +629,14 @@ An example is better than words:
- color: white
```
##### Usage with [configuration templates](#configuration-templates)
- `extra_styles` definitions are **not merged**.
- If inheriting from multiple templates with `extra_styles`, only the last one's `extra_styles` will be inherited.
- If a direct `extra_styles` definition is used, **no** `extra_styles` will be inherited.
If `extra_styles` are essential for the correct operation of a template, consider nesting them within the template's [custom fields](#custom-fields) as an embedded card.
### Custom Fields
Custom fields support, using the `custom_fields` object, enables you to create your own fields on top of the pre-defined ones (name, state, label and icon). This is an advanced feature which leverages (if you require it) the CSS Grid.