Merge pull request #1170 from ing-bank/fix/button-user-select
fix(button): add user-select rule with prefixes
This commit is contained in:
commit
f0043467fe
4 changed files with 14 additions and 0 deletions
5
.changeset/blue-frogs-enjoy.md
Normal file
5
.changeset/blue-frogs-enjoy.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@lion/button': patch
|
||||
---
|
||||
|
||||
Fix button user-select for Edge/Safari by adding prefixes for the CSS rule.
|
||||
5
.changeset/forty-ants-relate.md
Normal file
5
.changeset/forty-ants-relate.md
Normal 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.
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ export class LionSelectInvoker extends LionButton {
|
|||
|
||||
#content-wrapper {
|
||||
position: relative;
|
||||
pointer-events: none;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue