-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[styleguide] Popover menu #2798
Comments
ExamplesCalendar (app navigation)<div class="app-navigation-entry-menu hidden" style="display: block;">
<ul>
<li ng-show="item.calendar.arePropertiesWritable()">
<button ng-click="item.openEditor()">
<span class="icon-rename svg"></span>
<span>Edit</span>
</button>
</li>
... (li is repeated)
</ul>
</div> Mail (app navigation)<div class="app-navigation-entry-menu open">
<ul>
<li><button class="icon-rename svg" title="Settings"></button></li>
</ul>
<ul>
<li><button class="icon-delete svg" title="Delete account"></button></li>
</ul>
... (ul is repeated)
</div> Files<div class="fileActionsMenu popovermenu bubble open menu">
<ul>
<li>
<a href="#" class="menuitem action action-details permanent" data-action="Details">
<span class="icon icon-details"></span><span>Details</span>
</a>
</li>
<li>
<a href="#" class="menuitem action action-rename permanent" data-action="Rename">
<span class="icon icon-rename"></span><span>Rename</span>
</a>
</li>
... (li is repeated)
</ul>
</div> Personal settings<div class="federationScopeMenu popovermenu bubble open menu" style="width: 242px; left: -59.4844px;">
<ul>
<li>
<a href="#" class="menuitem action action-private permanent " data-action="private">
<img class="icon" src="/core/img/actions/password.svg">
<p>
<strong class="menuitem-text">Private</strong>
<br><span class="menuitem-text-detail">Only visible to you</span>
</p>
</a>
</li>
<li>
<a href="#" class="menuitem action action-contacts permanent active" data-action="contacts">
<img class="icon" src="/core/img/places/contacts-dark.svg">
<p>
<strong class="menuitem-text">Contacts</strong>
<br><span class="menuitem-text-detail">Visible to local users and to trusted servers</span>
</p>
</a>
</li>
... (li is repeated)
</ul>
</div> |
@nextcloud/designers |
@skjnldsv I just noticed that the top-right border radius is not set except in Files, is that fixed? :) I guess backporting is not really possible since it would require SCSS to be backported? |
No we could just backport the compiled css over the old popover code in stable11. |
yep, it was like this on stable11. |
I assume that should be
Didn't work for me in #3233. What exactly can I expect to work without js? Even opening the menu on clicking the three dots? |
Putting it inside the menu is the only way to position it without js 😄 Yeah the class is popovermenu, that's a typo thanks 😉 |
In that case I'm afraid you only have two choices left:
|
This is a styleguide post. We will discuss the proper way to integrate a specific design part of nextcloud and then integrate it in the documentations.
@jancborchardt @nextcloud/designers
What is a popover menu
This is a quick menu that open on click. We're usually using the three dots icons on nextcloud.
This menu currently differs from the navigation menu on the app-navigation section on the left. We should definitely merge those two and make one single way to create a popover menu on nextcloud (see app-navigation-entry-menu class on css files)
Summary
Proposition
Html structure
Technical details
<div><span class="icon-more"></span><div class="popovermenu">...</div></div>
Suggestions
menu-center
andmenu-left
for alignment.The text was updated successfully, but these errors were encountered: