Fixed the border problem in list-view page#444
Fixed the border problem in list-view page#444junezhang wants to merge 1 commit intopatternfly:masterfrom
Conversation
939fe56 to
16dba0b
Compare
| &.active:first-child { | ||
| border-top: 1px solid @list-group-active-border; | ||
| margin-top: -1px; | ||
| } |
There was a problem hiding this comment.
I don't believe this block is necessary. It is using the same values as the non first-child active items.
There was a problem hiding this comment.
Because in list-group.less, we have this code:
.list-group {
border-top: 1px solid @list-group-top-border;
.list-group-item:first-child {
border-top: 0;
}
}
set the first child border top is 0, I need the top border, so add a 1px to top border.
There was a problem hiding this comment.
But that does not effect .list-view-pf and does not come into play here
16dba0b to
f4b8297
Compare
|
@jeff-phillips-18 Thanks, Jeff. Fixed it. |
|
@jgiardino Wasn't this an intentional change? I'm looking at #434 and it states, "with this CSS removed, only a top blue border will display for selected items (for any row except first)." |
|
The update I checked in for #434 was to address the issue with additional borders displaying in the vertical nav that was introduced with #400. #400 did not provide details about why border styles for list groups were modified, and I didn't see details anywhere else that stated what the expected visual design was for list view borders, so for #434 I pulled out the css that caused the issue since it was unrelated to the actual issue stated in #400. I don't have a strong opinion on the visual design for the borders, and am interested in what the rest of the design team thinks this should be. However, there are two points I'd like to make related to this change:
|
|
It wasn't clear if the border should be there or not? And if this change will have any affect the navigation menu? It looked to me that the top blue border in the navigation menu was removed intentionally. I just wanted to ensure that adding this border back in won't override what you were trying to achieve with #434. If the change looks good to you, I'm ok with it. |
|
@jgiardino Thanks for your great suggestions. |
Description
Fixed this bug for when selected a row in list view page, only the top blue border will display.
Reference this link: patternfly/patternfly#434 (comment)