-
Notifications
You must be signed in to change notification settings - Fork 231
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
Notification panel transitions and visual enhancements #1997
Conversation
@beanh66 @serenamarie125 At expanded view, long notification messages can grow quite tall. I explored stacking the message beneath the title to give it space to expand. And improve readability. Any objections? |
app/styles/_notifications.less
Outdated
// TODO: hack to eliminate side-to-side wobble | ||
// There is a hard-coded <h4> that wraps the header: | ||
// - https://github.com/patternfly/angular-patternfly/issues/539 | ||
// I'm putting quite a bit of markup inside the header, | ||
// need to tinker to eliminate this rule. | ||
overflow: hidden; | ||
overflow:hidden; | ||
font-size: @font-size-h4; |
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: alpha
app/styles/_navbar-vertical.less
Outdated
@@ -87,6 +87,12 @@ | |||
@media(max-width: @screen-xs-max) { | |||
padding: 10px 15px 10px 5px; | |||
} | |||
.badge { |
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.
I had absolutely positioned .badge in one of my PRs. It looks like it got rebased away. :( Can we redo the absolute positioning? Otherwise the width of the nav item changes with the coming and going of the badge.
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.
Nevermind. The changes are in master. But perhaps you should combine the two rules so they're not in two different files?
app/styles/_navbar-vertical.less
Outdated
background-color: @color-pf-blue-300; | ||
border: 2px solid @navbar-os-bg-color; | ||
width: 12px; | ||
height: 12px; |
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: alpha
app/styles/_notifications.less
Outdated
padding: 10px 10px 10px 42px; | ||
.text-muted; | ||
} | ||
.drawer-pf-notification-info { |
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: alpha
app/styles/_notifications.less
Outdated
font-weight: normal; | ||
.word-break(); | ||
} | ||
.drawer-pf-notification-info { |
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: alpha
@sg00dwin this looks much better IMO! |
90a8cf2
to
6ec9bb4
Compare
changes updated |
app/styles/_notifications.less
Outdated
@@ -31,6 +42,9 @@ notification-drawer-wrapper { | |||
} | |||
} | |||
} | |||
.drawer-pf-close, .drawer-pf-toggle-expand { | |||
padding: 2px 10px; | |||
} |
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 should give feedback to patternfly on things like this. Shouldn't have to be overriding these settings.
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.
@sg00dwin why are we doing this? Agree that we shouldn't be overriding things. If we need PF to change something let me know. If they cannot do it in time, then we can override with a plan to change later.
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.
@jeff-phillips-18 @serenamarie125 Makes sense. For context, @sg00dwin added a few pixels of extra padding between the icon and the edge of the drawer.
@sg00dwin It might just be easier to remove this.
Before:
After:
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.
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 should give feedback to patternfly on things like this. Shouldn't have to be overriding these settings.
While I don't disagree, sometimes it's infinitely easier just to fix a problem in the code that you control.
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.
Totally agree that what you have done looks much better!
I do think that if we take those liberties, please call them out so that UX can review and we can make a plan get them into PatternFly for consistency :D Understand your point @rhamilto but when our customers are dealing with a portfolio of products, everyone doing their own things just causes further issues.
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.
+1 prob agree to both...temp fix here then ensure an issue upstream to track/migrate it.
6ec9bb4
to
8aba15e
Compare
app/styles/_navbar-vertical.less
Outdated
.nav-item-iconic .badge { | ||
background-color: @color-pf-blue-300; | ||
border: 2px solid @navbar-os-bg-color; | ||
height: 12px; |
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.
I don't think this should be straying from the Patternfly design, @openshift/team-ux-review ?
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.
@sg00dwin What is the before and after on this change?
If @openshift/team-ux-review agrees it's better, we could look at contributing it upstream in Patternfly.
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.
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.
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.
@serenamarie125 Opinion? I think the badge stands out better with the black around it. Let us know, and we can add submit this in Patternfly.
Before:
After:
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.
I think it's worth noting the inspiration for the border around the badge came from Github.
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.
8aba15e
to
d597530
Compare
Update to PatternFly 3.27.1
d597530
to
15e836f
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.
Much improved readability. Also like the fade in effect, and the positioning from top matches heading in both desktop & mobile. Now if my PR would just merge that would bump pf & get rid of the expand icon @ mobile. 🙂
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.
LGTM
@sg00dwin has removed the two items we talked about from this PR with plans to submit to Patternfly
@jeff-phillips-18 @rhamilto Another look? |
[merge] |
Flake #2016 [merge][severity: bug] |
Evaluated for origin web console merge up to 15e836f |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/126/) (Base Commit: 73c7420) (PR Branch Commit: 15e836f) (Extended Tests: bug) |
Update to PatternFly 3.27.1
Fixes #1993