1+ : host {
2+ dis play: contents;
3+ }
4+
5+ [part = button ] {
6+ outline : none;
7+ display : flex;
8+ align-items : center;
9+ font-family : var (--pg-font-family );
10+ text-align : var (--pg-menu-item-text-align , left);
11+ background : var (--pg-menu-item-background , transparent);
12+ padding : var (--pg-menu-item-padding , 0.25rem 0.5rem 0.25rem 1.5rem );
13+ border-color : transparent;
14+ border-width : 0 ;
15+ border-style : solid;
16+ border-top-left-radius : var (--pg-menu-item-border-radius-top , 0.25rem );
17+ border-top-right-radius : var (--pg-menu-item-border-radius-top , 0.25rem );
18+ border-bottom-left-radius : var (--pg-menu-item-border-radius-bottom , 0.25rem );
19+ border-bottom-right-radius : var (--pg-menu-item-border-radius-bottom , 0.25rem );
20+ color : var (--pg-menu-item-color , # 453C4F );
21+ }
22+
23+ [part = button ]: not (: disabled ): active ,
24+ [part = button ]: not (: disabled ): hover {
25+ background : var (--pg-menu-item-selected-background , # 453C4F );
26+ color : # FFFFFF ;
27+ }
28+
29+ [part = button ]: not (: disabled ): active {
30+ background : var (--pg-menu-item-active-background , # 5f516e );
31+ }
32+
33+ [part = button ]: disabled {
34+ color : var (--pg-menu-item-disabled-color , rgb (69 , 60 , 79 , 0.75 ));
35+ }
36+
37+ [part = button ].checked ::before {
38+ position : absolute;
39+ translate : -1.5rem 0 ;
40+ content : var (--pg-menu-item-check , url ("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z' fill='rgb(69, 60, 79)' /></svg>" ));
41+ width : 1.5rem ;
42+ height : 1.5rem ;
43+ }
44+
45+ [part = button ].checked : active ::before ,
46+ [part = button ].checked : hover ::before {
47+ content : var (--pg-menu-item-hover-check , url ("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z' fill='white' /></svg>" ));
48+ }
49+
50+ [part = button ].checked : disabled ::before {
51+ content : var (--pg-menu-item-disabled-check , url ("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z' fill='rgb(69, 60, 79, 0.5)' /></svg>" ));
52+ }
53+
54+ [part = button ]: focus-visible {
55+ position : relative;
56+ }
57+
58+ [part = button ]: focus-visible ::after {
59+ pointer-events : none;
60+ content : '' ;
61+ position : absolute;
62+ top : -1px ;
63+ right : -1px ;
64+ bottom : -1px ;
65+ left : -1px ;
66+ border-radius : 0.25rem ;
67+ box-shadow : 0 0 0 3px var (--pg-focus-color , rgb (79 , 143 , 249 , 0.5 ));
68+ }
69+
70+ [part = button ]: focus-visible : not (: hover )::after {
71+ background : var (--pg-focus-background-color , rgb (79 , 143 , 249 , 0.1 ));
72+ }
0 commit comments