Removing css that caused issue with borders displaying in secondary a…#434
Conversation
…nd tertiary nav panels. Also moving the z-index fix for PTNFLY-1134 from list-group.less to list-view.less
|
LGTM 👍 |
|
@jgiardino thanks for fixing this. 😄 |
|
@jgiardino @jeff-phillips-18 @andresgalante Thanks for reviewing the code for #400. I think if selected a row, the top and down border are both displayed will be better than only displayed the top border. May I move this piece of code to list-view.css? Then the border will display well. And it will not affect the vertical navigation. |
|
@kybaker Can you please take a look at this one? |
|
I agree with Andres. I don’t have a strong opinion about the border, and defer to the visual design team on this. But my preference is to not add extra css unless it provides benefit to the UI. |
|
How costly is the code cost @andresgalante ? It looks like a bug if it's omitted, which generates a user cost ;) |
|
In addition to having extra css code, the css that’s added also has a performance impact in that each row selection requires a reflow and repaint of the screen due to the styles that are being applied. If the final decision is to keep the top/bottom border for list row selection, then it would be nice to see if we can refactor what styles are applied so that we reduce the performance impact as much as possible, while achieving the same visual design. Specifically, I'm wondering if we could apply changes to border color only, and not to border width and margin. Border color requires only a repaint (https://csstriggers.com/border-bottom-color), whereas changing border width and margin width require both reflow and repaint (https://csstriggers.com/border-bottom-width). |
|
@jgiardino two questions...
|
|
I'm interested in Andres' or anyone's opinion on this, but the following is
Jenn Giardino On Wed, Aug 31, 2016 at 2:52 PM, Leslie notifications@github.com wrote:
|
|
@jgiardino |
|
@andresgalante @jgiardino I actually like the single border option. The two border option looks heavy handed with such a dark blue. The single border feels light, clean, and modern. If it saves on performance all the better. |
|
@andresgalante @jgiardino @kybaker @serenamarie125 Sounds like we have a majority rule here to go with the single boarder option. I appreciate that it will improve performance, we have visual design approval and I don't believe the single line will impact the usability of selection on list view. If concerns arise, we will address that at a later date. |
|
@kybaker, Sorry, one more question, currently I'm also doing a task of list view, so I'd like to confirm about the single border, should it be the bottom border or top border? or either is okay? |


Description
A previous update, #400, to list-group.less resulted in unwanted borders displaying for list group items in the secondary and tertiary nav panels. To fix the issue I removed the css that resulted in these borders displaying.
NOTE, the border style updates in #400 modified the display of borders in the list view, so that when a row was selected, a top AND bottom blue border displayed. With this CSS removed, only a top blue border will display for selected items (for any row except first). In the design document, blue borders do not display at all so I'm not sure what the actual expected look is. If further updates are needed for this, please let me know.
I also moved the css that fixed the original issue addressed by #400 from list-group.less to list-view.less as suggested by Andres.
Examples of updates
Navigation Before

Navigation After

List View Before

List View After
