<⬇️/> A Polymer element for Skip to Content.
Install the component using Bower:
$ bower install skip-to-content --save
- Import Web Components' polyfill:
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
- Import Custom Element:
<link rel="import" href="bower_components/skip-to-content/skip-to-content.html">
- Start using it!
<skip-to-content skipTo="#main" color="#e00571"></skip-to-content>
Attribute | Type | Default | Description |
---|---|---|---|
skipTo |
String | #main |
Destination ID. |
color |
String | #000 |
The background color. |
Style the element with CSS as you would a normal DOM element.
.skip-to-content {
}
Using the webcomponents.js
11+ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
- Install Bower & Polymer-CLI:
$ [sudo] npm install -g bower polymer-cli polyserve
- Install local dependencies:
$ bower install
- Start the development server on http://localhost:8080/:
$ polyserve
- Running tests
$ polymer test test/index.html -l chrome
View docs:
http://localhost:8080/components/skip-to-content/
View demo:
http://localhost:8080/components/skip-to-content/demo/
To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.
Find on our issues the next steps of the project ;)
Want to contribute? Follow these recommendations.
See Releases for detailed changelog.