diff --git a/.gitignore b/.gitignore index d667db1..5f1b6a4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ build *.log storybook-static custom-elements.json +.idea diff --git a/src/potentiometer-element.ts b/src/potentiometer-element.ts index 81de8b4..ba7d2f0 100644 --- a/src/potentiometer-element.ts +++ b/src/potentiometer-element.ts @@ -33,6 +33,17 @@ export class PotentiometerElement extends LitElement { word-spacing: 0px; fill: #ffffff; } + .hide-input { + position: absolute; + clip: rect(0 0 0 0); + width: 1px; + height: 1px; + margin: -1px; + } + input:focus + svg #knob { + stroke: #ccdae3; + filter: url(#outline); + } `; } @@ -53,12 +64,26 @@ export class PotentiometerElement extends LitElement { const knobDeg = (this.endDegree - this.startDegree) * percent + this.startDegree; return html` + + + + + +