Skip to content

Commit

Permalink
feat: add webkit-tap-highlight-color basy style
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Mar 3, 2021
1 parent 27c5ec8 commit 0eedac4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const baseRtl = require("./dist/base.rtl.js")
const styled = require("./dist/styled.js")
const styledRtl = require("./dist/styled.rtl.js")

module.exports = ({ addComponents, addUtilities, config }) => {
module.exports = ({ addBase, addComponents, addUtilities, config }) => {
// because rollupjs doesn't supprt dynamic require
let file = styled
if (config('daisyui.styled') === false && config('daisyui.rtl') === false) {
Expand All @@ -17,6 +17,11 @@ module.exports = ({ addComponents, addUtilities, config }) => {
file = styledRtl
}
addComponents(file)
if (config('daisyui.base') !== false) {
addBase({
'html': { '-WebkitTapHighlightColor': 'transparent' },
})
}
if (config('daisyui.themes') === true) {
addComponents(themes)
}
Expand Down
5 changes: 4 additions & 1 deletion src/tailwind/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ module.exports = {
},
},
plugins: [
plugin(function({ addUtilities }) {
plugin(function({ addBase, addUtilities }) {
addBase({
'html': { '-WebkitTapHighlightColor': 'transparent' },
})
addUtilities(require('./utilities/variables'),{ variants: ['responsive'] })
addUtilities(require('./utilities/minHeight'),{ variants: ['responsive'] })
addUtilities(require('./utilities/fontSize'),{ variants: ['responsive'] })
Expand Down

0 comments on commit 0eedac4

Please sign in to comment.