Skip to content
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

Consistent cursor style for instance failed tooltip #2333

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions app/styles/_overview.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
margin-top: 5px;
}
}
.instance-status-notification,
.notification-icon-count {
display: inline-block;
margin: 5px 5px 0 0;
@media (min-width: @screen-md-min) {
margin-top: 0;
}
[data-toggle="tooltip"] {
cursor: help;
}
}
.mini-donut-link {
color: @gray-darker;
&:active,
Expand Down Expand Up @@ -63,16 +74,6 @@
}
}
}
.notification-icon-count {
display: inline-block;
margin: 5px 5px 0 0;
@media (min-width: @screen-md-min) {
margin-top: 0;
}
[data-toggle="tooltip"] {
cursor: help;
}
}

.overview {
.app-heading {
Expand Down
7 changes: 3 additions & 4 deletions app/views/overview/_service-instance-row.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ <h3>
</h3>
<div class="status-icons" ng-if="!row.expanded">
<notification-icon alerts="row.notifications"></notification-icon>
<div ng-switch="row.instanceStatus">
<div ng-switch="row.instanceStatus" class="instance-status-notification">
<span ng-switch-when="failed"
dynamic-content="{{row.apiObject | serviceInstanceFailedMessage}}"
data-toggle="tooltip"
data-trigger="hover"
class="notification-icon-count">
data-trigger="hover">
<span class="pficon pficon-error-circle-o" aria-hidden="true"></span>
<span>Error</span>
Error
</span>
<span ng-switch-when="deleted" class="notification-icon-count">
<span class="pficon pficon-warning-triangle-o" aria-hidden="true"></span>
Expand Down
6 changes: 3 additions & 3 deletions dist/scripts/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -12521,10 +12521,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"</h3>\n" +
"<div class=\"status-icons\" ng-if=\"!row.expanded\">\n" +
"<notification-icon alerts=\"row.notifications\"></notification-icon>\n" +
"<div ng-switch=\"row.instanceStatus\">\n" +
"<span ng-switch-when=\"failed\" dynamic-content=\"{{row.apiObject | serviceInstanceFailedMessage}}\" data-toggle=\"tooltip\" data-trigger=\"hover\" class=\"notification-icon-count\">\n" +
"<div ng-switch=\"row.instanceStatus\" class=\"instance-status-notification\">\n" +
"<span ng-switch-when=\"failed\" dynamic-content=\"{{row.apiObject | serviceInstanceFailedMessage}}\" data-toggle=\"tooltip\" data-trigger=\"hover\">\n" +
"<span class=\"pficon pficon-error-circle-o\" aria-hidden=\"true\"></span>\n" +
"<span>Error</span>\n" +
"Error\n" +
"</span>\n" +
"<span ng-switch-when=\"deleted\" class=\"notification-icon-count\">\n" +
"<span class=\"pficon pficon-warning-triangle-o\" aria-hidden=\"true\"></span>\n" +
Expand Down
8 changes: 4 additions & 4 deletions dist/styles/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.