Conditional rendering text ('render text' vs ' not rendering any text') alongside an icon inside kirby-button "breaks" the button. When I say it "breaks", I mean the kirby-button still behaves/'is styled' as though there is text inside the button when the conditional rendering defaults to not render any text.
Describe how to reproduce the bug
Add kirby-button to a button html tag.
Inside the button, add some conditional logic that switches between rendering text and not rendering any text
Describe the bug
Conditional rendering text ('render text' vs ' not rendering any text') alongside an icon inside
kirby-button
"breaks" the button. When I say it "breaks", I mean the kirby-button still behaves/'is styled' as though there is text inside the button when the conditional rendering defaults to not render any text.Describe how to reproduce the bug
kirby-button
to a button html tag.Examples:
Which Kirby version was used?
What was the expected behavior?
This is how it currently behaves when the conditional logic renders an empty string:
This is how it should behave:
Add any screenshots
Please complete the following information:
Are there any additional context?
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Verification
To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.
NOT verified
label has been removed by a member of team Kirby; do not proceed until this is done.Implementation
The contributor who wants to implement this issue should:
Review
Once the issue has been implemented and is ready for review: