Skip to content

Commit

Permalink
fix(button): set user-select to none to make btn text not selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
Joren Broekema committed Jan 6, 2021
1 parent 03100f6 commit 718843e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-eyes-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lion/button': patch
---

Set user-select to none on button, so that the inner text is not selectable.
1 change: 1 addition & 0 deletions packages/button/src/LionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
padding: 8px; /* padding to fix with min-height */
outline: none; /* focus style handled below */
cursor: default; /* /* we should always see the default arrow, never a caret */
user-select: none;
}
:host::before {
Expand Down

0 comments on commit 718843e

Please sign in to comment.