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

Styling the Accept Hosted form? #10

Open
JannikZed opened this issue Dec 28, 2023 · 1 comment
Open

Styling the Accept Hosted form? #10

JannikZed opened this issue Dec 28, 2023 · 1 comment

Comments

@JannikZed
Copy link

We are currently trying to use the accept hosted implementation from your lib and are failing to style it, so I wanted to generally know, what options are even possible here? What is the recommended implementation?
In point 3 you are writing:

A note on styling: a goal of this library is to invert control of the UI to the developer. Each of the <AcceptHosted /> compound compontents (<Button />, <IFrameBackdrop />, <IFrameContainer />, and <IFrame />) have both className and style object props, allowing the default styles to be overridden. At this moment, this is not recommended.

-> what is alternatively recommended from your side? The docs are missing details here..

@brendanbond
Copy link
Owner

To be honest I can't remember why I added that "not recommended" snippet, it must have been that using className and style didn't work as expected. What happens when you use those props to try and style the compound components?

I'll try and take some time today to spin up a CodeSandbox, it's been a while since I was able to look at this

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