ory / elements

Ory Elements is a component library that makes building login, registration and account pages for Ory a breeze. Check out the components library on Chromatic https://www.chromatic.com/library?appId=63b58e306cfd32348fa48d50
https://ory.sh
Apache License 2.0
85 stars 44 forks source link

bug: Buttons are transparent with just core CSS styles #94

Open JacobMillward opened 1 year ago

JacobMillward commented 1 year ago

Preflight checklist

Describe the bug

By default with just the required CSS styles, the button on UserAuthCard has a transparent background. This makes it invisible.

image

Reproducing the bug

Set up '@ory/elements' with just the core styles (only import @ory/elements/style.css as defined in the docs). Create a Login variant of the UserAuthCard. The button should be visible, and it is not.

Relevant log output

No response

Relevant configuration

No response

Version

0.0.1-beta.3

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

Benehiko commented 1 year ago

Hi @JacobMillward

We use Ory Elements inside the Account Experience and in example projects and did not observe the button as transparent.

Could you share the code of how you are using Ory Elements? Did you wrap the ThemeProvider around the components?

https://github.com/ory/elements/blob/main/src/react-components/provider.tsx#L18

Please see the React example https://github.com/ory/elements/blob/main/examples/react-spa/src/main.tsx#L35