Source overflow options from config

This commit is contained in:
Adam Wathan 2019-02-28 12:25:04 -05:00
parent f323a546bd
commit 3494cf509f

View file

@ -1,5 +1,5 @@
export default function({ variants }) {
return function({ addUtilities }) {
export default function() {
return function({ addUtilities, config }) {
addUtilities(
{
'.overflow-auto': { overflow: 'auto' },
@ -17,7 +17,7 @@ export default function({ variants }) {
'.scrolling-touch': { '-webkit-overflow-scrolling': 'touch' },
'.scrolling-auto': { '-webkit-overflow-scrolling': 'auto' },
},
variants
config('variants.overflow')
)
}
}