Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate with css modules? #1

Open
cloudorbush opened this issue Apr 11, 2021 · 4 comments
Open

How to integrate with css modules? #1

cloudorbush opened this issue Apr 11, 2021 · 4 comments

Comments

@cloudorbush
Copy link

cloudorbush commented Apr 11, 2021

Wrapping an element with <Squircle /> in the component.js file does not play nice with css imported from the component.module.css file.

Any suggestions besides switching to styled components?

Great work.

@pie6k
Copy link
Owner

pie6k commented Apr 12, 2021

Can you show some example use-case code-snippet?

@cloudorbush
Copy link
Author

@pie6k
Copy link
Owner

pie6k commented Apr 12, 2021

Thats interesting case, so you can add

  width: 100%;
  border: none;

to your button styles.

By default Squircle has 100% width while button by default is inlined which means it does not stretch horizontally.

Adding those it seems to look ok:

CleanShot 2021-04-12 at 19 17 41@2x

@cloudorbush
Copy link
Author

cloudorbush commented Apr 12, 2021

Could we implement an option to change the default width?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants