gi-feature-touch-hover
v0.0.2
Published
Hover styles for mouse and touch devices.
Downloads
9
Readme
touch-hover
feature
Touch hover functionality.
Global dependencies
Installation
Install this package with sackmesser:
make feature-install-touch-hover
or when sackmesser is not used:
yarn install gi-feature-touch-hover
After the installation has completed, you can import the module files:
JS:
// import feature class
import TouchHover from 'gi-feature-touch-hover'
// ...
base.features.add('touch-hover', TouchHover)
Make sure you provide the global dependencies in your webpack config file:
new webpack.ProvidePlugin({
base: 'gi-js-base'
})
Styles:
@import 'gi-feature-touch-hover/src/style';
Browser compatibility
- Newest two browser versions of Chrome, Firefox, Safari and Edge
- IE 10 and above
Development
make build
ornpm run build
- Build production version of the feature.make dev
ornpm run dev
- Build demo of the feature, run a watcher and start browser-sync.make test
ornpm run test
- Test the feature.make jsdoc
- Update documentation inside thedocs
folder.make publish
- Publish npm package.