Skip to content

Commit

Permalink
Basic notification bell fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Aug 28, 2017
1 parent 225fdbe commit 42c5218
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
11 changes: 7 additions & 4 deletions app/styles/_navbar-vertical.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
@media(min-width: @screen-sm-min) {
margin-right: @navbar-header-right-margin;
}
.drawer-pf-trigger {
display: block;
float: left;
a {
display: block;
}
}
.dropdown .nav-item-iconic {
padding-right: 20px;
}
Expand All @@ -62,10 +69,6 @@
@media(min-width: @screen-sm-min) {
display: block;
}
// always show the notification drawer icon
&.drawer-pf-trigger {
display: block;
}
}
.nav-item-iconic {
line-height: normal; // align text and icon
Expand Down
4 changes: 2 additions & 2 deletions app/styles/_notifications.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
notification-drawer-wrapper {
.drawer-pf {
height: calc(~"100vh - 80px"); //to create a 20px offset bottom
top: @navbar-os-header-height-desktop - 10;
top: @navbar-os-header-desktop - 10;
z-index: @zindex-navbar-fixed + 1; // was 1050
.tech-preview & {
top: @navbar-os-header-height-desktop + @tech-preview-banner-height - 10;
top: @navbar-os-header-desktop + @tech-preview-banner-height - 10;
}
}
// the whole block is clickable, need to set pointer on all of these
Expand Down
10 changes: 1 addition & 9 deletions app/views/directives/header/_navbar-utility.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
<ul class="nav navbar-nav navbar-right navbar-iconic">
<li>
<notification-counter></notification-counter>
</li>
<li
extension-point
extension-name="nav-system-status"
extension-types="dom"></li>

<li class="drawer-pf-trigger">
<a class="nav-item-iconic">
<span class="fa fa-bell" title="Notifications"></span>
<span class="badge"> </span><!-- in order to show the empty badge this requires a space, otherwise add a value -->
</a>
</li>
<notification-counter></notification-counter>

<li ng-if="launcherApps.length > 0">
<pf-application-launcher items="launcherApps" is-list="true"></pf-application-launcher>
Expand Down
7 changes: 2 additions & 5 deletions app/views/directives/notifications/notification-counter.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<li class="drawer-pf-trigger" ng-if="!$ctrl.hide">
<a href="" class="nav-item-iconic" ng-click="$ctrl.onClick()">
<span class="fa fa-bell" title="Notifications" aria-hidden="true"></span>
<span ng-if="$ctrl.showUnreadNotificationsIndicator" class="badge"> </span>
<span class="sr-only">Notifications</span>
</a>
<!-- Cannot have whitespace inside the `a`, so keep everything on one line. -->
<a href="" class="nav-item-iconic" ng-click="$ctrl.onClick()"><span class="fa fa-bell" title="Notifications" aria-hidden="true"></span><span ng-if="$ctrl.showUnreadNotificationsIndicator" class="badge"> </span><span class="sr-only">Notifications</span></a>
</li>

0 comments on commit 42c5218

Please sign in to comment.