fix(button): set user-select to none to make btn text not selectable

This commit is contained in:
Joren Broekema 2021-01-06 17:33:51 +01:00
parent 03100f6b1e
commit 718843e5ba
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/button': patch
---
Set user-select to none on button, so that the inner text is not selectable.

View file

@ -61,6 +61,7 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
padding: 8px; /* padding to fix with min-height */ padding: 8px; /* padding to fix with min-height */
outline: none; /* focus style handled below */ outline: none; /* focus style handled below */
cursor: default; /* /* we should always see the default arrow, never a caret */ cursor: default; /* /* we should always see the default arrow, never a caret */
user-select: none;
} }
:host::before { :host::before {