-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): add BTP variant for User Menu [ci visual] (#4867)
- Loading branch information
1 parent
0cf23ec
commit 3f315ba
Showing
8 changed files
with
1,630 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
232 changes: 232 additions & 0 deletions
232
packages/styles/stories/BTP/user-menu/user-menu-phone.example.html
Large diffs are not rendered by default.
Oops, something went wrong.
183 changes: 183 additions & 0 deletions
183
packages/styles/stories/BTP/user-menu/user-menu-tablet.example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
<div style="height: 40rem; display: flex; justify-content: flex-end;"> | ||
<div class="is-cozy"> | ||
<div class="fd-popover fd-popover--right fd-user-menu fd-user-menu--tool-header"> | ||
<div class="fd-popover__control"> | ||
<span | ||
class="fd-avatar fd-avatar--xs fd-avatar--circle fd-avatar--thumbnail" | ||
aria-controls="popoverA2TH" | ||
aria-expanded="true" | ||
aria-haspopup="true" | ||
aria-label="Avatar" | ||
style="background-image: url('assets/images/avatars/3.svg');" | ||
onclick="onPopoverClick('popoverA2TH');" | ||
role="button" | ||
tabindex="0"></span> | ||
</div> | ||
<div class="fd-popover__body fd-popover__body--right fd-user-menu__popover-body" aria-hidden="false" id="popoverA2TH"> | ||
<div class="fd-user-menu__body fd-popover__wrapper"> | ||
<div class="fd-user-menu__header"> | ||
<span | ||
class="fd-avatar fd-avatar--96 fd-avatar--circle fd-avatar--thumbnail fd-user-menu__avatar" | ||
aria-label="Avatar" | ||
style="background-image: url('assets/images/avatars/3.svg');"></span> | ||
</div> | ||
<div class="fd-user-menu__subheader"> | ||
<div class="fd-user-menu__user-name">Kevin Miller</div> | ||
<div class="fd-user-menu__user-role">Design Expert</div> | ||
</div> | ||
<div class="fd-user-menu__navigation-menu"> | ||
<div class="fd-navigation fd-navigation--tablet"> | ||
<ul class="fd-navigation__list" role="tree"> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu" | ||
title="User Account" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__icon sap-icon--person-placeholder" role="presentation" aria-hidden="true"></span> | ||
<span class="fd-navigation__text">User Account</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
|
||
</li> | ||
<li class="fd-navigation__list-item fd-popover" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu fd-popover__control" | ||
title="Settings" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="true" | ||
aria-haspopup="tree" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__icon sap-icon--action-settings" role="presentation" aria-hidden="true"></span> | ||
<span class="fd-navigation__text">Settings</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
<span class="fd-navigation__has-children-indicator" role="presentation" aria-hidden="true" aria-label="has children indicator, expanded"></span> | ||
</a> | ||
</div> | ||
<div class="fd-user-menu__navigation-submenu fd-popover__body fd-popover__body--before fd-popover__body--no-arrow" role="tree" aria-roledescription="User Menu Submenu"> | ||
<div class="fd-popover__wrapper fd-user-menu__navigation-submenu-wrapper"> | ||
<ul class="fd-navigation__list fd-navigation__list--child-items"> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu fd-navigation__item--child" | ||
title="Personalization" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__text">Personalization</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu fd-navigation__item--child" | ||
title="Users and Permissions" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__text">Users and Permissions</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu fd-navigation__item--child" | ||
title="Product Settings" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__text">Product Settings</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</li> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu" | ||
title="Product Specific" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__icon sap-icon--product" role="presentation" aria-hidden="true"></span> | ||
<span class="fd-navigation__text">Product Specific</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu" | ||
title="Product Specific" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="true" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__icon sap-icon--flag" role="presentation" aria-hidden="true"></span> | ||
<span class="fd-navigation__text">Product Specific</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu" | ||
title="Product Specific" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__icon sap-icon--card" role="presentation" aria-hidden="true"></span> | ||
<span class="fd-navigation__text">Product Specific</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="fd-navigation__list-item" role="treeitem"> | ||
<div | ||
class="fd-navigation__item fd-navigation__item--menu" | ||
title="Legal Information" | ||
aria-roledescription="Navigation List Tree Item" | ||
aria-selected="false" | ||
aria-expanded="false" | ||
> | ||
<a class="fd-navigation__link" role="link" href="#"> | ||
<span class="fd-navigation__icon sap-icon--card" role="presentation" aria-hidden="true"></span> | ||
<span class="fd-navigation__text">Legal Information</span> | ||
<span class="fd-navigation__selection-indicator" aria-label="selection indicator"></span> | ||
<span class="fd-navigation__has-children-indicator" role="presentation" aria-hidden="true" aria-label="has children indicator, expanded"></span> | ||
</a> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="fd-user-menu__footer"> | ||
<button class="fd-button">Sign Out</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.