You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On which framework/platform are you having an issue?
React, Other
Which UI component?
Authenticator
How is your app built?
next.js
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge, Safari
Which region are you seeing the problem in?
No response
Please describe your bug.
I use AWS Amplify as login in a nextJS 14 project. When I look at it in localhost everything looks fine.
But when it is deployed the styling of the primary buttons doesn't seem to be used. The border radius is not there (after the "or") and the sign in button is not visible/is white.
If I use the developer tools and remove the class "amplify-button--primary", the button becomes visible.
I have tried changing the styling of the signIn in my code, as well as removing the styling all together for the primary button. Neither has worked in displaying the button when deployed.
I would like my styling to be in effect when deployed (as in localhost). Or at least get the button to be visible.
Hi @nfluk,
It looks like your tailwind CSS is overriding the Amplify UI CSS button styling:
Can you try importing your tailwind CSS file before the Amplify CSS file to make sure that amplify button CSS takes priority?
We already did import the tailwind css first, so after we double checked that that was the case we tried the second option.
The layering option removed all the tailwind styling for us. But if we kept the imports you linked with some minor edits and without the layer specificity we could get the same result in localhost as when deployed. So we went with that and syled the amplify-button--primary with !important to override it's styling and that seems to have worked.
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React, Other
Which UI component?
Authenticator
How is your app built?
next.js
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge, Safari
Which region are you seeing the problem in?
No response
Please describe your bug.
I use AWS Amplify as login in a nextJS 14 project. When I look at it in localhost everything looks fine.
But when it is deployed the styling of the primary buttons doesn't seem to be used. The border radius is not there (after the "or") and the sign in button is not visible/is white.
If I use the developer tools and remove the class "amplify-button--primary", the button becomes visible.
I have tried changing the styling of the signIn in my code, as well as removing the styling all together for the primary button. Neither has worked in displaying the button when deployed.
I would like my styling to be in effect when deployed (as in localhost). Or at least get the button to be visible.
What am I missing or doing wrong?
Here is my code:
What's the expected behaviour?
I expect the sign up button to be visible once deployed and in the style I have when running it in localhost.
Help us reproduce the bug!
Below is the entirety of the code that I am using. I'm not sure how else to reproduce this issue.
nextJS 14.0.4,
aws-amplify 6.0.7
aws-amplify/ui-react 6.0.6
amplify/adapter-nextjs 1.0.5
Code Snippet
The link to the deployed page:
login no sign in button
Console log output
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: