|
1 | 1 | import '@vaadin/vaadin-lumo-styles/spacing.js'; |
2 | 2 | import '@vaadin/vaadin-lumo-styles/style.js'; |
3 | | -import '@vaadin/vaadin-lumo-styles/font-icons.js'; |
4 | | -import '@vaadin/vaadin-lumo-styles/color.js'; |
5 | | -import '@vaadin/vaadin-lumo-styles/sizing.js'; |
6 | | -import '@vaadin/vaadin-lumo-styles/typography.js'; |
7 | 3 | import { menuOverlay } from '@vaadin/vaadin-lumo-styles/mixins/menu-overlay.js'; |
8 | 4 | import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; |
9 | 5 |
|
@@ -33,43 +29,3 @@ const contextMenuOverlay = css` |
33 | 29 | registerStyles('vaadin-context-menu-overlay', [menuOverlay, contextMenuOverlay], { |
34 | 30 | moduleId: 'lumo-context-menu-overlay', |
35 | 31 | }); |
36 | | - |
37 | | -registerStyles( |
38 | | - 'vaadin-context-menu-item', |
39 | | - css` |
40 | | - /* :hover needed to workaround https://github.com/vaadin/web-components/issues/3133 */ |
41 | | - :host(:hover) { |
42 | | - user-select: none; |
43 | | - -ms-user-select: none; |
44 | | - -webkit-user-select: none; |
45 | | - } |
46 | | -
|
47 | | - :host([role='menuitem'][menu-item-checked]) [part='checkmark']::before { |
48 | | - opacity: 1; |
49 | | - } |
50 | | -
|
51 | | - :host([aria-haspopup='true'])::after { |
52 | | - font-family: lumo-icons; |
53 | | - font-size: var(--lumo-icon-size-xs); |
54 | | - content: var(--lumo-icons-angle-right); |
55 | | - color: var(--lumo-tertiary-text-color); |
56 | | - } |
57 | | -
|
58 | | - :host(:not([dir='rtl'])[aria-haspopup='true'])::after { |
59 | | - margin-right: calc(var(--lumo-space-m) * -1); |
60 | | - padding-left: var(--lumo-space-m); |
61 | | - } |
62 | | -
|
63 | | - :host([expanded]) { |
64 | | - background-color: var(--lumo-primary-color-10pct); |
65 | | - } |
66 | | -
|
67 | | - /* RTL styles */ |
68 | | - :host([dir='rtl'][aria-haspopup='true'])::after { |
69 | | - content: var(--lumo-icons-angle-left); |
70 | | - margin-left: calc(var(--lumo-space-m) * -1); |
71 | | - padding-right: var(--lumo-space-m); |
72 | | - } |
73 | | - `, |
74 | | - { moduleId: 'lumo-context-menu-item' }, |
75 | | -); |
0 commit comments