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
84 stars 41 forks source link

feat: prefix the css class names #163

Closed Benehiko closed 8 months ago

Benehiko commented 8 months ago

This PR simplifies class overrides by providing a prefix name for the generated CSS classes.

In this case we add a prefix ory_elements__ to each class name.

The format is as follows: ory_elements_<variant|size>__hash

Example generated classes: ory_elements__button_social__i8n2ik0 ory_elements__button_social_size_medium__ecxsa2d ory_elements__button_social_variant_semibold__xas31dg

See this discussion for more details https://github.com/ory/elements/discussions/162

Related Issue or Design Document

Checklist

Further comments

Benehiko commented 8 months ago

Without the hash doesn't work. image

even playwright tests are failing since the UI elements aren't rendering properly. I'll add the hash back.