Skip to content

Commit

Permalink
disable webkit tap highlight color on all elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Jul 28, 2024
1 parent 28193c7 commit 32f55e8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/android-tv-card.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/android-tv-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ class AndroidTVCard extends LitElement {
padding: 12px;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
--md-ripple-hover-opacity: var(--ha-ripple-hover-opacity, 0.08);
--md-ripple-pressed-opacity: var(
--ha-ripple-pressed-opacity,
Expand Down
2 changes: 2 additions & 0 deletions src/classes/base-remote-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ export class BaseRemoteElement extends LitElement {
overflow: visible;
font-size: inherit;
color: inherit;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
ha-icon,
svg {
Expand Down
5 changes: 5 additions & 0 deletions src/classes/keyboard-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ export class KeyboardDialog extends LitElement {

static get styles() {
return css`
:host {
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
dialog {
height: 0px;
width: 0px;
Expand Down

0 comments on commit 32f55e8

Please sign in to comment.