Skip to content

Commit

Permalink
fix(FlyoutMenuOption): added shadow:true & css (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailash-tw authored Oct 1, 2024
1 parent 8506aaa commit 08eb1c6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@use '../../global/b2b-styles';

:host {
display: block;
padding: var(--b2b-size-15) var(--b2b-size-30) 5px var(--b2b-size-30);
border-bottom: 1px solid transparent;
cursor: pointer;
}

:host(.b2b-flyout-menu__option:hover),
:host(.b2b-flyout-menu__option:focus) {
background-color: var(--b2b-color-table-selected-hover);
outline: none;
}

:host(.b2b-flyout-menu__option--disabled) {
pointer-events: none;
color: var(--b2b-color-grey-200);
}

:host(.b2b-flyout-menu__option--separator) {
border-bottom: 1px solid var(--b2b-color-grey-200);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { OptionSelectedEventDetail } from '../../utils/interfaces/form.interface

@Component({
tag: 'b2b-flyout-menu-option',
styleUrl: 'flyout-menu.scss',
styleUrl: 'flyout-menu-option.scss',
shadow: true,
})
export class FlyoutMenuOptionComponent {
/** The option name. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ describe('B2B-FlyoutMenu', () => {
icon.click();
await page.waitForChanges();

const flyoutMenuOption = await page.find({ text: 'option3' });
const flyoutMenuOption = await page.find(
'b2b-flyout-menu-option[option="option3"]',
);
flyoutMenuOption.click();
await page.waitForChanges();

Expand Down

0 comments on commit 08eb1c6

Please sign in to comment.