Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out workaround for tailwind transparent button bg issue #49

Open
lsollis opened this issue Feb 21, 2023 · 3 comments
Open

Figure out workaround for tailwind transparent button bg issue #49

lsollis opened this issue Feb 21, 2023 · 3 comments
Assignees
Labels
Low Priority Non-essential that extends usability.

Comments

@lsollis
Copy link
Contributor

lsollis commented Feb 21, 2023

Tailwind preflight sets all button backgrounds as transparent by default. There may be an error in tailwind v3 preventing button background classes from working.

One example of the issue is in zipcode.tsx; there is currently inline css styling applied to give the button some color

A reference to discussion of the issue: tailwindlabs/tailwindcss#6602

@lsollis
Copy link
Contributor Author

lsollis commented Feb 21, 2023

l

@lsollis lsollis self-assigned this Feb 21, 2023
@avenmia
Copy link
Collaborator

avenmia commented Mar 2, 2023

This seems to be an issue with declaring the type being submit.

The button below renders fine for me

 <button className="rounded-full px-6 py-2 mx-1 hover:bg-blue-default bg-blue-darker text-white"  onClick={(e) => handleSubmit(e)}>Submit</button>

This one does not

 <button type="submit" className="rounded-full px-6 py-2 mx-1 hover:bg-blue-default bg-blue-darker text-white"  onClick={(e) => handleSubmit(e)}>Submit</button>

@christianpetty
Copy link

This is still an issue for me. Submit, reset, and button are all transparent even with @layer component overrides.

@avenmia avenmia added the Low Priority Non-essential that extends usability. label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority Non-essential that extends usability.
Projects
None yet
Development

No branches or pull requests

3 participants