fix(button): add user-select rule with prefixes
This commit is contained in:
parent
a99e14ef6e
commit
3fefc359b8
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 */
|
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 {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export class LionSelectInvoker extends LionButton {
|
||||||
|
|
||||||
#content-wrapper {
|
#content-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue