Skip to content

Commit

Permalink
feat: add IE and Edge support (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Boontawat Kumpiroj <boontawatk@Boontawats-MacBook-Air.local>
Co-authored-by: reslear <reslear@gmail.com>
  • Loading branch information
3 people committed Oct 30, 2021
1 parent e777c04 commit 74bbc04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const plugin = require('tailwindcss/plugin')
const scrollbarHide = plugin(function ({ addUtilities }) {
addUtilities({
'.scrollbar-hide': {
/* IE and Edge */
'-ms-overflow-style': 'none',

/* Firefox */
'scrollbar-width': 'none',

Expand All @@ -12,6 +15,9 @@ const scrollbarHide = plugin(function ({ addUtilities }) {
}
},
'.scrollbar-default': {
/* IE and Edge */
'-ms-overflow-style': 'auto',

/* Firefox */
'scrollbar-width': 'auto',

Expand Down

0 comments on commit 74bbc04

Please sign in to comment.