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

bug: CDN installation does not recognize submit button #2734

Open
ogesaku opened this issue Jan 6, 2024 · 3 comments
Open

bug: CDN installation does not recognize submit button #2734

ogesaku opened this issue Jan 6, 2024 · 3 comments

Comments

@ogesaku
Copy link

ogesaku commented Jan 6, 2024

What version of daisyUI are you using?

v4.0.5

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://jsbin.com/mexepajiqi/edit?html,output

Describe your issue

Buttons elements with type="submit" are missing background when installed via CDN.
The problem does not appear when using npm installation.

<form>
  <button class="btn btn-primary">Button</button> <!-- works -->
  <button class="btn btn-primary" type="submit">Submit button</button> <!-- no bg -->
  <input class="btn btn-primary" type="submit" value="Input button"/> <!-- no bg -->
</form>
Copy link

github-actions bot commented Jan 6, 2024

Thank you @ogesaku for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@whitetown
Copy link

not only 'submit'. usual type='button' too

https://jsbin.com/vuhazewibe/1/edit?html,output

@seanaye
Copy link

seanaye commented Mar 27, 2024

Screenshot 2024-03-26 at 9 19 36 PM

This is caused by the background-color style in the tailwindcss preflight reset. I'm not sure why the reset only applies to buttons that have a "type" attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants