supertokens / supertokens-auth-react

ReactJS authentication module for SuperTokens
https://supertokens.com
Other
260 stars 81 forks source link

fix: Remove !important from css styles #791

Closed anku255 closed 5 months ago

anku255 commented 5 months ago

Summary of change

This PR removes the !important declaration from the CSS styles.

Test Plan

No further changes were needed after removing the !important styles to keep the existing styles. Here is the screenshot after making this change -

image image

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

rishabhpoddar commented 5 months ago

It seems like you have done manual testing of this for just a few cases? We need a more robust way of testing and making sure nothing broke. In the MFA branch, we have added story book which helps know about changes in the UI. So make this PR on top of the MFA branch and check the storybook thing to see that nothing broke?

anku255 commented 5 months ago

It seems like you have done manual testing of this for just a few cases? We need a more robust way of testing and making sure nothing broke. In the MFA branch, we have added story book which helps know about changes in the UI. So make this PR on top of the MFA branch and check the storybook thing to see that nothing broke?

I have tested it in storybook and in the example app as well. No further changes are required after removing !important declaration to keep the existing styles.

PS: The styles did break in storybook but I was able to fix that by using similar css loader as we do in our build process.