Merge pull request #1170 from ing-bank/fix/button-user-select

fix(button): add user-select rule with prefixes
This commit is contained in:
Joren Broekema 2021-01-07 14:50:01 +01:00 committed by GitHub
commit f0043467fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 */ 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; user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
} }
:host::before { :host::before {

View file

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