Skip to content

Commit

Permalink
Merge pull request #9 from laravel-frontend-presets/invalid-inputs
Browse files Browse the repository at this point in the history
Add default styling to handle invalid input red borders in Firefox
  • Loading branch information
danharrin authored May 8, 2020
2 parents 52cd53b + ed3a7bb commit b396fd1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stubs/default/resources/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
*/
@tailwind base;

/**
* Remove the default box-shadow for invalid elements to prevent
* inputs in Livewire components showing with a
* red border by default in Firefox.
*
* See: https://github.com/laravel-frontend-presets/tall/issues/7
*/
input:invalid, textarea:invalid, select:invalid {
box-shadow: none;
}

/**
* This injects any component classes registered by plugins.
*/
Expand Down

0 comments on commit b396fd1

Please sign in to comment.