Component variants / Toggle Component Elements / Make all atomic element content fields empty #35654
kameleon-th
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the Problem
Not all atomic elements are can be empty – this is a problem if we don’t always want to have the element rendered in the DOM.
Example: As far as I can see the SVG and Image atomic elements currently have no option to be "empty" like, a text or heading atomic element. So when we create a component like a button, for example. We can’t make that SVG or Image "optional".
Hiding elements with CSS is a not the solution to this.
Propose a Solution
Make sure all atomic element content fields can be empty or add a toggle control for component fields
Additional Context
No response
Agreement
All reactions