fix(button): add user-select rule with prefixes

This commit is contained in:
Joren Broekema 2021-01-07 10:02:30 +01:00
parent a99e14ef6e
commit 3fefc359b8
4 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/button': patch
---
Fix button user-select for Edge/Safari by adding prefixes for the CSS rule.

View file

@ -0,0 +1,5 @@
---
'@lion/select-rich': patch
---
Set pointer-events to none to fix Safari bug where click event is blocked by text content wrapper.

View file

@ -62,6 +62,9 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
outline: none; /* focus style handled below */
cursor: default; /* /* we should always see the default arrow, never a caret */
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
:host::before {

View file

@ -22,6 +22,7 @@ export class LionSelectInvoker extends LionButton {
#content-wrapper {
position: relative;
pointer-events: none;
}
`,
];