Baseline grid toggle is unstyled on standalone examples
Describe the bug
Styling for the switch component is not imported into the examples stylesheet examples.scss, so the baseline grid switch is unstyled on standalone examples unless the example imports the switch component itself.
To Reproduce
Steps to reproduce the behavior:
- Go to a standalone example that does not import switch. For example: Buttons combined
- Verify that the baseline grid toggle is unstyled.
- Go to a standalone example that does import the switch. For example: Switch
- Verify that the baseline grid toggle is styled.
Expected behavior
Baseline grid toggle switch is always styled.
Screenshots
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-13998.
This message was autogenerated
Triage: if we can fix it low effort, let's to it. Otherwise probably not worth it.
It seems that theme switch segmented control has styling, so we may want to include the switch styles the same way?
I would like to work on this issue. Could you please assign it to me?
Based on the description and @bartaz's comment, it looks like we need to import the switch component styles into examples.scss so the baseline grid toggle is properly styled on all standalone examples. I'll investigate how the theme switch styling is imported and apply the same approach for the baseline grid toggle.