diff --git a/demo/demos.json b/demo/demos.json
index 824631a7..784a44f8 100644
--- a/demo/demos.json
+++ b/demo/demos.json
@@ -50,7 +50,8 @@
"demo/pb-grid.html": "Demo"
},
"pb-highlight": {
- "demo/pb-highlight.html": "Demo"
+ "demo/pb-highlight.html": "Demo",
+ "demo/pb-highlight2.html": "Demo"
},
"pb-i18n": {
"demo/pb-i18n.html": "Demo"
diff --git a/demo/pb-highlight2.html b/demo/pb-highlight2.html
new file mode 100644
index 00000000..a7a31be8
--- /dev/null
+++ b/demo/pb-highlight2.html
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+ pb-hightlight Demo
+
+
+
+
+
+
+
+
+
+ Highlight with a gradient background-image
+
+
+
+
+ Lorem ipsum dolor sit amet, consetetur
+ sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
+ dolore magna aliquyam erat, sed diam voluptua.
+ At vero eos et accusam et justo duo dolores et ea rebum.
+ Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
+ sit amet.
+
+
+
+
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
+ eirmod tempor invidunt ut labore et
+ dolore magna aliquyam erat, sed diam voluptua.
+ At vero eos et accusam et justo duo dolores et ea rebum.
+ Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
+ sit amet.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pb-highlight.js b/src/pb-highlight.js
index c3b02209..b039bb5a 100644
--- a/src/pb-highlight.js
+++ b/src/pb-highlight.js
@@ -18,7 +18,8 @@ import { pbMixin } from './pb-mixin';
* @fires pb-highlight-on - Fires highlight event with a key passed to which other pb-highlight elements with the same key will react
* @fires pb-highlight-off - When received, triggers removal of a highlight that might have been on for this element before
* @fires pb-highlight-on - When received, switches the highlight on if the same key was received as the current element has
- * @cssprop --pb-highlight-color - Background color to highlight an element
+ * @cssprop [--pb-highlight-color=#F9E976]- Background color to highlight an element
+ * @cssprop --pb-highlight-background-image - Background-image to highlight an element with a gradient (e.g. stripes with repeating-linear-gradient). Will override --pb-highlight-color.
*/
export class PbHighlight extends pbMixin(LitElement) {
static get properties() {
@@ -121,7 +122,7 @@ export class PbHighlight extends pbMixin(LitElement) {
animation-duration: 500ms;
animation-iteration-count: 1;
animation-timing-function: ease-in;
-
+ background-image: var(--pb-highlight-background-image);
}
.highlight-off {