dniccum / nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.
MIT License
37 stars 15 forks source link

Button Styles Override Nova's Styles #29

Closed movntains closed 1 year ago

movntains commented 1 year ago

There are some button styles (indicated with the arrow in the screenshot below) that override the Nova styles for the background color of <button> elements.

Screen Shot 2023-02-23 at 3 15 47 PM

This appears to be coming from Tailwind's Preflight, the styles of which are never overridden elsewhere in tool.scss.

I confirmed that this package was the source of the issue by temporarily removing it from the NovaServiceProvider and determining that button styles were rendering as expected.

As you can see in the screencast below, if those styles are disabled, then the button styles are rendered correctly.

https://user-images.githubusercontent.com/34202440/221028320-b05637b6-580f-47e1-bbba-c4b03d8babfb.mov

cc: @logantfox