Skip to content

Commit

Permalink
feat(menu): update react story book
Browse files Browse the repository at this point in the history
  • Loading branch information
jialin-he committed Aug 7, 2023
1 parent 1c69694 commit 28dd8d9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,31 @@ export const FullWidth = {
),
};

export const OnBackground = {
render: () => (
<div
style={{
display: 'grid',
gridGap: '8rem',
marginTop: '5rem',
justifyContent: 'space-evenly',
}}
>
<PharosButton
id="my-button-on-background"
data-dropdown-menu-id="my-menu-on-background"
iconRight="chevron-down"
>
A menu on brackground
</PharosButton>
<PharosDropdownMenu id="my-menu-on-background" show-selected on-background>
<PharosDropdownMenuItem>Item One</PharosDropdownMenuItem>
<PharosDropdownMenuItem>Item Two</PharosDropdownMenuItem>
</PharosDropdownMenu>
</div>
),
};

export const Links = {
render: () => (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
opacity var(--pharos-transition-duration-short) linear;
}

:host([on-background]) .dropdown-menu__list {
border: 1px solid var(--pharos-color-marble-gray-20);
}

:host([open]) .dropdown-menu__list {
visibility: visible;
opacity: 1;
Expand Down

0 comments on commit 28dd8d9

Please sign in to comment.