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
When using nova-toggle with Nova 4, there is a bug : in each create form, the save buttons are not well displayed.
When inspecting the html elements, we can see that the css rules provided by the last version of this package conflict with the rules provided by Nova. The background color provided by Nova css class : .bg-primary-500 { background-color: rgba(var(--colors-primary-500)); }
is overwritten by a rule provided by nova-toggle.css : [type=button], [type=reset], [type=submit], button { -webkit-appearance: button; background-color: transparent; background-image: none; }
I think there is no need to export a css file with only the tailwind presets.
In the dist/css/field.css file, you can safely remove all selectors that don't begin with tw-.
To do so, you could use the postcss-purgecss-laravel package and modify the webpack.mix.js file as below :
.postCss('resources/sass/app.css', 'public/css', [ require('tailwindcss')(), require('postcss-purgecss-laravel')({ safelist: { greedy: [/^tw-/] } }), ])
I haven't tested it, but I think it might work.
Ok,
Disregard my two previous comments : after upgrading to the latest commit, everything is ok.
I'm sorry for the inconvenience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An initial version of Toggle for Nova V4.