wellcomecollection / identity

Identity services for Wellcome Collection users
MIT License
0 stars 2 forks source link

Allow universal-login template to handle signup as well as login #304

Closed davidpmccormick closed 2 years ago

davidpmccormick commented 2 years ago

Design on Zeplin

The current login form has the line, 'Not a library member? Read more about joining the library'. We're replacing that with, 'Not a library member? Apply for a membership'. This link is dynamically provided by Auth0 and will have to live within the widget, so this copy will move up (to appear directly below the CTA button).

As this is handled by Auth0, I'm not sure if we can style it exactly the same as it appears currently (i.e. with the first sentence in bold).

On the signup screen, an equivalent piece of copy linking back to the login screen will appear, but again because of the Auth0 limitation, I'm not sure we can bold the first sentence – 'Already have an account? Sign in'.

TODO: figure out how to toggle this because we don't want to go live with it immediately on prod, but can't see how our toggles are available in this context. We can deploy to stage and look at it there, but don't think that'll be sufficient for testing the journey end-to-end.

Edit: we currently style elements inside the Auth0 widget by targeting their classes directly. We'll know what these are for the signup button/text once we've deployed to stage, at which point, I'll put in another pr to style them appropriately, and show/hide based on the presence of the existence of toggle_enableRequesting=true in document.cookie. We could possibly add the bold text styling with JS as well. I'm not saying we should.