- Issue created by @pdureau
- 🇫🇷France pdureau Paris
For information, https://www.drupal.org/project/ui_skins → has the same challenge for themes/modes plugins which can be classes, data-attributes or meta elements.
Example ui_suite_dsfr.ui_skins.themes.yml:
light: label: "Light" key: data-fr-scheme target: html dark: label: "Dark" key: data-fr-scheme target: html mourning_light: label: "Mourning light" key: data-fr-mourning target: html value: "" dependencies: [light] mourning_dark: label: "Mourning dark" key: data-fr-mourning target: html value: "" dependencies: [dark]
Rules:
If missing “value”: we take the plugin ID.
This behaviour is not well documented and seems hard to understand, so let's not take it without challenging it.
However, adopting a shared format and/or mechanism woudl be nice.
Also, this issue needs to be considered in the context of ✨ Add a style utility API Active