-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add theme module in main page, so as its available when demo component loads * Adapting demos to new site * Adapting demos to new site * Adapting demos to new site * Remove styling demos * Formatting eslintrc file * Remove custom button theme * Adding annotations for mixins
- Loading branch information
Showing
9 changed files
with
5,200 additions
and
867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": { | ||
}, | ||
"globals": { | ||
"ButtonDemo": false, | ||
"DemoReadyEventEmitter": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<dom-module id="button-basic-demos"> | ||
<template> | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
|
||
</style> | ||
|
||
|
||
<h3>Default button</h3> | ||
<vaadin-demo-snippet id='button-basic-demos-default-button'> | ||
<template preserve-content> | ||
<vaadin-button onclick="console.log('clicked')">Vaadin Button</vaadin-button> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
|
||
<h3>Button with autofocus</h3> | ||
<vaadin-demo-snippet id='button-basic-demos-button-with-autofocus'> | ||
<template preserve-content> | ||
<vaadin-button autofocus> | ||
<img src="vaadin-logo.svg"> | ||
</vaadin-button> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
|
||
<h3>Button with Accessible Label</h3> | ||
<vaadin-demo-snippet id='button-basic-demos-button-with-accessible-label'> | ||
<template preserve-content> | ||
<vaadin-button aria-label="Click Me">Accessible</vaadin-button> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
|
||
<h3>Buttons with custom tabindex</h3> | ||
<vaadin-demo-snippet id='button-basic-demos-buttons-with-custom-tabindex'> | ||
<template preserve-content> | ||
<vaadin-button tabindex="3">3</vaadin-button> | ||
<vaadin-button tabindex="2">2</vaadin-button> | ||
<vaadin-button tabindex="1">1</vaadin-button> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
|
||
<h3>Disabled button</h3> | ||
<vaadin-demo-snippet id='button-basic-demos-disabled-button'> | ||
<template preserve-content> | ||
<vaadin-button disabled>Disabled</vaadin-button> | ||
</template> | ||
</vaadin-demo-snippet> | ||
</div> | ||
</template> | ||
<script> | ||
class ButtonBasicDemos extends DemoReadyEventEmitter(ButtonDemo(Polymer.Element)) { | ||
static get is() { | ||
return 'button-basic-demos'; | ||
} | ||
} | ||
customElements.define(ButtonBasicDemos.is, ButtonBasicDemos); | ||
</script> | ||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script> | ||
/* @polymerMixin */ | ||
ButtonDemo = superClass => { | ||
return class extends superClass { | ||
static get properties() { | ||
return { | ||
}; | ||
} | ||
}; | ||
}; | ||
</script> | ||
|
||
<script> | ||
window.addEventListener('WebComponentsReady', () => { | ||
document.body.removeAttribute('unresolved'); | ||
}); | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Vaadin Button", | ||
"pages": [ | ||
{ | ||
"name": "Basic Examples", | ||
"url": "button-basic-demos", | ||
"src": "button-basic-demos.html", | ||
"meta": { | ||
"title": "vaadin-button Basic Examples", | ||
"description": "", | ||
"image": "" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.