Skip to content

Commit

Permalink
Reapply the user-selection none to nested items
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-fix committed Nov 28, 2019
1 parent e42d03f commit 7492c01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/vaadin-context-menu-overlay.html
Expand Up @@ -13,10 +13,6 @@
:host {
align-items: flex-start;
justify-content: flex-start;
user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}

:host([right-aligned]) {
Expand Down
7 changes: 7 additions & 0 deletions theme/lumo/vaadin-context-menu-styles.html
Expand Up @@ -86,6 +86,13 @@
<dom-module id="lumo-context-menu-item" theme-for="vaadin-context-menu-item">
<template>
<style>
:host {
user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}

:host(.vaadin-menu-item[menu-item-checked])::before {
opacity: 1;
}
Expand Down

0 comments on commit 7492c01

Please sign in to comment.