Repository navigation
web: striped animations and pause button colors - #3436
Conversation
#2520 Signed-off-by: Jamie Klassen <[email protected]>
select by color instead of class name #2520 Signed-off-by: James Cooper <[email protected]> Co-authored-by: Jamie Klassen <[email protected]>
…ground of the build header Signed-off-by: James Cooper <[email protected]>
Signed-off-by: James Cooper <[email protected]>
|
technically this PR was authored by @xtreme-james-cooper and @Lindsayauchin but created with my account -- looking over the changes I am very pleased. some particularly nice refactoring around colors generally! |
|
Sorry about that, @pivotal-jamie-klassen XD |
vito
left a comment
There was a problem hiding this comment.
😮 Looks cool! Kinda hard to read though - especially the timestamp. Maybe we can put a solid background behind the text?
Also, seems like it'll be difficult to align the background for these two elements - it's a small detail but it's easy to notice, so someone will probably open an issue as soon as this is released. 😅
I tried hacking on the background positioning to make it line up, but it's made even more difficult by the fact that the build number links start at different x-coordinates each time - even worse, that area is scrollable, so it'd always be possible to bring it out of alignment unless we do some trickery like restructuring the DOM so they share a common background.
Something like the dashboard UI's running indicator might be easier to work with - i.e. a smaller strip along one of the edges and a darker background. I always found the white-on-yellow pretty hard on the eyes even before the animation. 🤔 I tried it out briefly and it looked a little awkward though since it made the header look 'empty'.
Last bit of feedback: the normal/hover state for the trigger build button feels a little off; here's normal vs. hovered:
The normal state looks a little washed out (almost disabled?) and the hover state kind of looks like a normal state to me. I think the washed-outness is most noticeable with the green color. Red/brown seem OK. And I think what makes the hover state look 'normal' is that the background color turns into the same color as the rest of the header, so it kinda loses its emphasis rather than looking like the button itself is lighting up.
|
@Lindsayauchin tagging you in regrading the type/location of the stripes and impact of color contrast on readability. I'd be fine with a yellow/black striped line along the top or something similar, which, as stated, circumvents all the troubles around synchronized stripes and color contrast pretty neatly. I might still vote in favour of having the whole banner colorful rather than black/grey by default. |
|
@pivotal-jamie-klassen @vito Updated design of the running animation to the style used on the dashboard pipeline card. User feedback on the button with the status as the background colour was that it didn't look clickable. See examples: |
|
@Lindsayauchin 👍 I find that button style clearer. Now that the sawtooth pattern is up there it kind of encroaches on the header spacing, though I'm not sure how to avoid that since there's no space for the border otherwise. The dashboard doesn't have this problem because it always has a border up top, rather than filling in the header background. 🤔 The spacing is really only noticeable with the timestamps since they come closest to the edge. This is scope creeping a bit, but the timestamps were crammed up there back in 2014 without much thought and haven't moved since, so maybe it's time to finally move'em. 🙂 |
|
@Lindsayauchin +1 for horizontal layout of timestamps |
darken on hover, icon always opaque, add border #3185 Signed-off-by: James Cooper <[email protected]> Co-authored-by: Jamie Klassen <[email protected]>
|
my guess at the right behaviour for the status bar: salient points are:
I'm dubious about the 100px fixed width in the interest of preserving the changes from #3333 Here we find ourselves quickly running out of horizontal real estate, even with a moderate-length job name and only one of the timestamps being verbose. Another idea, if we're willing to make some alignment and font size compromises (10px is probably getting into truly inaccessible territory): @Lindsayauchin I liked the idea at first, but it gives us a real yak to shave. Maybe increasing the height of the status bar (and therefore the size of the buttons, if keeping them square) is simpler in the short run. Obviously every pixel of sticky header eats at mobile real estate too, but I think that is a problem for another day. @vito you might be interested to weigh in here too. |
|
another draft after pairing with @Lindsayauchin |
made it too hard to read #2520 Signed-off-by: Jamie Klassen <[email protected]>
Signed-off-by: Jamie Klassen <[email protected]>












fixes #2520
fixes #3185
Closes the old animation pr because this is on top of that