Skip to content

Commit f99dc89

Browse files
Merge pull request #2325 from rhamilto/notification-badge
Automatic merge from submit-queue. Incorporate badge-pf-bordered on notification drawer bell IMPORTANT: #2324 must merge first as it bumps PatternFly to a version including the upstream change that includes badge-pf-bordered <img width="67" alt="screen shot 2017-10-20 at 10 11 14 am" src="https://user-images.githubusercontent.com/895728/31825374-1124ba1e-b580-11e7-9d09-f0b0392771a2.PNG"> <img width="253" alt="screen shot 2017-10-20 at 10 11 27 am" src="https://user-images.githubusercontent.com/895728/31825375-11354f00-b580-11e7-85ae-89f77a15c3f0.PNG">
2 parents 57139b5 + c368ef9 commit f99dc89

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

Diff for: app/styles/_navbar-vertical.less

+6-5
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@
5353
@media(min-width: @screen-sm-min) {
5454
margin-right: @navbar-header-right-margin;
5555
}
56+
// adjust positioning of notification drawer badge as our header
57+
// heights are different, as is the bell icon size
5658
.badge {
57-
margin: 0 !important;
58-
position: absolute;
59-
right: 13px;
60-
top: 9px;
59+
left: 14px !important;
60+
top: 7px !important;
6161
@media(min-width: @screen-sm-min) {
62-
top: 20px;
62+
left: 21px !important;
63+
top: 18px !important;
6364
}
6465
}
6566

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<li class="drawer-pf-trigger" ng-if="!$ctrl.hide">
22
<!-- Cannot have whitespace inside the `a`, so keep everything on one line. -->
3-
<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>
3+
<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 badge-pf-bordered"> </span><span class="sr-only">Notifications</span></a>
44
</li>

Diff for: dist/scripts/templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7921,7 +7921,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
79217921
$templateCache.put('views/directives/notifications/notification-counter.html',
79227922
"<li class=\"drawer-pf-trigger\" ng-if=\"!$ctrl.hide\">\n" +
79237923
"\n" +
7924-
"<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>\n" +
7924+
"<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 badge-pf-bordered\"> </span><span class=\"sr-only\">Notifications</span></a>\n" +
79257925
"</li>"
79267926
);
79277927

Diff for: dist/styles/main.css

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)