Commit 08eb1c6 1 parent 8506aaa commit 08eb1c6 Copy full SHA for 08eb1c6
File tree 3 files changed +28
-2
lines changed
3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change
1
+ @use ' ../../global/b2b-styles' ;
2
+
3
+ :host {
4
+ display : block ;
5
+ padding : var (--b2b-size-15 ) var (--b2b-size-30 ) 5px var (--b2b-size-30 );
6
+ border-bottom : 1px solid transparent ;
7
+ cursor : pointer ;
8
+ }
9
+
10
+ :host (.b2b-flyout-menu__option :hover ),
11
+ :host (.b2b-flyout-menu__option :focus ) {
12
+ background-color : var (--b2b-color-table-selected-hover );
13
+ outline : none ;
14
+ }
15
+
16
+ :host (.b2b-flyout-menu__option--disabled ) {
17
+ pointer-events : none ;
18
+ color : var (--b2b-color-grey-200 );
19
+ }
20
+
21
+ :host (.b2b-flyout-menu__option--separator ) {
22
+ border-bottom : 1px solid var (--b2b-color-grey-200 );
23
+ }
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ import { OptionSelectedEventDetail } from '../../utils/interfaces/form.interface
11
11
12
12
@Component ( {
13
13
tag : 'b2b-flyout-menu-option' ,
14
- styleUrl : 'flyout-menu.scss' ,
14
+ styleUrl : 'flyout-menu-option.scss' ,
15
+ shadow : true ,
15
16
} )
16
17
export class FlyoutMenuOptionComponent {
17
18
/** The option name. */
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ describe('B2B-FlyoutMenu', () => {
82
82
icon . click ( ) ;
83
83
await page . waitForChanges ( ) ;
84
84
85
- const flyoutMenuOption = await page . find ( { text : 'option3' } ) ;
85
+ const flyoutMenuOption = await page . find (
86
+ 'b2b-flyout-menu-option[option="option3"]' ,
87
+ ) ;
86
88
flyoutMenuOption . click ( ) ;
87
89
await page . waitForChanges ( ) ;
88
90
You can’t perform that action at this time.
0 commit comments