-
Notifications
You must be signed in to change notification settings - Fork 90
chore(pfInfoStatusCard): Tweak infoStatusCard as per UX guidance #632
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
chore(pfInfoStatusCard): Tweak infoStatusCard as per UX guidance #632
Conversation
ng-repeat="item in $ctrl.status.info track by $index"></p> | ||
<p ng-if="!$ctrl.shouldShowHtmlContent" ng-bind="item" | ||
ng-repeat="item in $ctrl.status.info track by $index"></p> | ||
<div ng-if="$ctrl.shouldShowHtmlContent" class="info-content" ng-bind-html="$ctrl.trustAsHtml(item)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. but I think 'showHtmlContent' would be enough of a description :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dtaylor113 I like your nits. Name follows other names around though, looking for buyin to rid ourselves of should
in the whole of this work? pfinfostatuscard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not in this PR if it's being used elsewhere. -thanks
As per convo with @jennyhaines workin on that egregious padding when including a title |
1aea727
to
739a590
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting changes. I somehow missed the missing semicolons in the spec
file earlier.
A few semicolons seem to be missing from this file, I probably missed a few too...
... 2, 7, 9, 14, 17, 28, 42, 54, 58, 74, 76, 80, 83, 86, 89,92, 95, 97, 109, 111, 114, 115, 119
@@ -73,7 +73,7 @@ describe('Component: pfInfoStatusCard', function () { | |||
|
|||
element = compileCard('<pf-info-status-card status="status"></pf-info-status-card>', $scope) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon, looks like in quite a few spots within the file...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bahahahah eeeekkkk other project I'm on uses standard.js too funny, rubymine doesn't seem to respect that 🤦♂️
@@ -5,18 +5,18 @@ | |||
class="info-img"/> | |||
<span class="info-icon {{$ctrl.status.iconClass}}"></span> | |||
</div> | |||
<div> | |||
<div class="info-content-container"> | |||
<h2 class="card-pf-title" ng-if="$ctrl.status.title"> | |||
<a href="{{$ctrl.status.href}}" ng-if="$ctrl.status.href"> | |||
<span class="">{{$ctrl.status.title}}</span> | |||
</a> | |||
<span ng-if="!$ctrl.status.href"> | |||
<span class="">{{$ctrl.status.title}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what where?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you got it
739a590
to
705436d
Compare
src/card/card.less
Outdated
.info-icon { | ||
font-size: 50px; | ||
} | ||
.info-img { | ||
max-height: 50px; | ||
} | ||
} | ||
.info-content-container { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to name this such that it is a PF thing. How about .card-pf-info-content? not sure we need to add -container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
down with that name!
wil change the img one accordingly
ng-repeat="item in $ctrl.status.info track by $index"></p> | ||
<p ng-if="!$ctrl.shouldShowHtmlContent" ng-bind="item" | ||
ng-repeat="item in $ctrl.status.info track by $index"></p> | ||
<div ng-if="$ctrl.shouldShowHtmlContent" class="info-content" ng-bind-html="$ctrl.trustAsHtml(item)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is ".info-content" defined? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YOU NOTICED! its not, used for testing, also just in case user wants to grab each of those rows and do something with them, like a connivence class! 👍
can pull it and rework test if desired
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave it, might be nice for apps to use to add settings, how about a rename though? like card-pf-info-item?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that's what i was thinking! will rename
12bd3d0
to
a31d5e8
Compare
@AllenBW - I'm not sure how to review the visuals for the latest code changes to the cards. Could you post screenshots? Thank you! |
@jennyhaines first post has latest screen shot |
@jennyhaines If you compare the ss at the top of this pr to the #630 link in the first post, should make review a breeze! |
@AllenBW - The top spacing looks good! Thanks!! Only thing I'd suggest to change at this point is the spacing between the card title and the details. (for example, between "TinyCore-local" and "VM Name: aapde...", or "Favorite things" and the first icon). I'd decrease that spacing by 5px, and then I think the cards will be good to go! |
a31d5e8
to
abb4d29
Compare
@jennyhaines Updated! check ss in first post of pr 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me- Thanks!
abb4d29
to
b6736c6
Compare
b6736c6
to
1f49434
Compare
Description
a continuation of #630
@serenamarie125 @jennyhaines
Show me the 🤑