hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

Fix `h-switch` component styling #391

Closed andrewtpham closed 1 year ago

andrewtpham commented 1 year ago

Currently the h-switch styling is not displaying when used. Investigate css scoping.

andrewtpham commented 1 year ago

Here's a PR I've opened on Dots repo that should have the neccessary changes for the styling to take place but there might be some issues in hakawati that need to be added: https://github.com/hikaya-io/dots/pull/1783

Background of the issue

I'm running into an error when I'm trying to get the right h-switch prop to display. I'm using secondary as the prop from the documentation: https://hakawati.hikaya.dev/?path=/docs/1-0-switch--main

Image

This is the error I receive in Dots when trying to use the correct prop secondary: Image

@Kimaiyo077 can you help me look into this?