Package Exports
- @vaadin/vaadin-control-state-mixin
- @vaadin/vaadin-control-state-mixin/vaadin-control-state-mixin.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vaadin/vaadin-control-state-mixin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vaadin-control-state-mixin
⚠️ Starting from Vaadin 20, the source code and issues for this component mixin are migrated to the
vaadin/web-componentsmonorepository. This repository contains the source code and releases of@vaadin/vaadin-control-state-mixinfor the Vaadin versions 10 to 19.
A mixin which adds focused and focus-ring states to an element.
Running tests in browser
Fork the
vaadin-control-state-mixinrepository and clone it locally.When in the
vaadin-control-state-mixindirectory, runnpm installand thenbower installto install dependencies.Make sure you have polymer-cli installed globally:
npm i -g polymer-cli.Run
npm start.Navigate to http://127.0.0.1:3000/components/vaadin-control-state-mixin/test/index.html
Running tests from the command line
Install web-component-tester:
npm install -g web-component-testerWhen in the
vaadin-control-state-mixindirectory, runwctornpm test
Following the coding style
We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running npm run lint, which will automatically lint all .js files as well as JavaScript snippets inside .html files.
Creating a pull request
To contribute to the component, please read the guideline first.
License
Apache License 2.0