-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and document small theme variant (#188)
- Loading branch information
1 parent
542ce78
commit 39d18cb
Showing
9 changed files
with
95 additions
and
34 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
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,66 @@ | ||
<dom-module id="select-theme-variants-demos"> | ||
<template> | ||
<style include="vaadin-component-demo-shared-styles"> | ||
:host { | ||
display: block; | ||
} | ||
</style> | ||
|
||
<h3>Small Size</h3> | ||
<vaadin-demo-snippet id="select-theme-variants-demos-sizes"> | ||
<template preserve-content> | ||
<vaadin-select label="Name" theme="small"> | ||
<template> | ||
<vaadin-list-box> | ||
<vaadin-item>Jose</vaadin-item> | ||
<vaadin-item>Manolo</vaadin-item> | ||
<vaadin-item>Pedro</vaadin-item> | ||
</vaadin-list-box> | ||
</template> | ||
</vaadin-select> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
<h3>Custom Theme Variant</h3> | ||
<vaadin-demo-snippet id="select-theme-variants-demos-custom"> | ||
<template preserve-content> | ||
<dom-module id="custom-select" theme-for="vaadin-text-field vaadin-item"> | ||
<template> | ||
<style> | ||
:host([theme~="custom"]) { | ||
font-family: monospace; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
<dom-module id="custom-select-overlay" theme-for="vaadin-text-field vaadin-select-overlay"> | ||
<template> | ||
<style> | ||
:host([theme~="custom"]) [part~="overlay"] { | ||
background: linear-gradient(hsla(214, 61%, 25%, 0.05), hsla(214, 61%, 25%, 0.05)) #fff; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
<vaadin-select label="Name" theme="custom"> | ||
<template> | ||
<vaadin-list-box> | ||
<vaadin-item theme="custom">Jose</vaadin-item> | ||
<vaadin-item theme="custom">Manolo</vaadin-item> | ||
<vaadin-item theme="custom">Pedro</vaadin-item> | ||
</vaadin-list-box> | ||
</template> | ||
</vaadin-select> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
</template> | ||
<script> | ||
class SelectThemeVariantsDemos extends DemoReadyEventEmitter(SelectDemo(Polymer.Element)) { | ||
static get is() { | ||
return 'select-theme-variants-demos'; | ||
} | ||
} | ||
customElements.define(SelectThemeVariantsDemos.is, SelectThemeVariantsDemos); | ||
</script> | ||
</dom-module> |
Binary file modified
BIN
+4.14 KB
(110%)
test/visual/screens/vaadin-select/default-tests-lumo/select/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.52 KB
(110%)
test/visual/screens/vaadin-select/default-tests-lumo/select/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.04 KB
(120%)
test/visual/screens/vaadin-select/default-tests-material/select/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.31 KB
(120%)
test/visual/screens/vaadin-select/default-tests-material/select/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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