-
Notifications
You must be signed in to change notification settings - Fork 914
Improve comment card for better readability and hierarchy #13325
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
Conversation
cec4957 to
6c93663
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.
Thanks Banobe, great to see the move from a table to a flex box, maybe there will be the need to update some cypress bits (I'm not sure). Anyhow good job!
The pencil button looks too big, I see the svg has the correct dimensions but the shape inside seems bigger in this PR. Could you try to export the icon I did from penpot and see if it helps?
Also it seems the white inner border of the avatar (that helps to separate the avatar image and the color of the user) is too small in this PR
Also, could you please update the font-sizes? I have done that to see how it would look like (as per the PenPot designs):
but since we don't have full control of which font will be used from var(--cool-font) it can look too small, but we can test/check that after this PR is merged. For this PR it's important that we follow the PenPot designs, particularly that the date is not bigger nor the same size as the comment itself.
The Resolve seems not aligned with the comment and the icons, it should :

6c93663 to
88cc2dc
Compare
88cc2dc to
e9df2fb
Compare
| .cool-annotation-img { | ||
| box-sizing: content-box !important; | ||
| max-width: 32px; | ||
| display: inline-block; | ||
| border: solid 2px; | ||
| border: solid 1px; | ||
| border-radius: 50%; | ||
| height: 32px; | ||
| width: 32px; | ||
| height: var(--default-height); | ||
| width: var(--default-width); | ||
| padding: 0; | ||
| opacity: 0.9; | ||
| } |
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 is a problem with the opacity, it never gets to fully opaque (1), can you please check that? Historically, I think it was set to that opacity only if the card is not active (?) can you recheck git blames etc?
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.
Yes, you are right. The opacity: 0.9 was recently added to create a hover effect where hovering over a collapsed comment sets the opacity to 1. However, I think opacity: 1 should be applied to active cards
browser/css/cool.css
Outdated
| max-width: 32px; | ||
| display: inline-block; | ||
| border: solid 2px; | ||
| border: solid 1px; |
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.
The colorful border cannot be glue to the image otherwise images will blend too much with the outer border and both the border color and the edges of the avatar will be confusing/indistinguishable. Please add also a white outline of 1px that it's offset by -2px.
pedropintosilva
left a comment
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.
^
e9df2fb to
bf6f879
Compare
.cool-annotation-img {
box-sizing: content-box !important;
max-width: 32px;
display: inline-block;
border: solid 2px;
border-radius: 50%;
height: var(--default-height);
width: var(--default-width);
padding: 0;
outline: 2px solid #fff;
outline-offset: -3px;
} |
|
Also we have discussed and that more button looks a bit off, too "light" in comparison to the edit button. Best to try to use the lc_more.svg |
bf6f879 to
e688d8a
Compare
Made update: dc59c9d |
c769fe8 to
e9cdc17
Compare
pedropintosilva
left a comment
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.
Can you please add missing box-size tot he "buttons" (divs) otherwise they become bigger than 24px
e9cdc17 to
5ba2a8a
Compare
5ba2a8a to
5d117dc
Compare
|
Please invert also the outline color, otherwise the border looks very thick on dark mode (due to outline being white) |
5d117dc to
fdb7206
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.
thanks now the dark mode looks better. But we are still missing hover state on dark mode. After that we can merge.
As a an action item we should think a better way to align scrollbars within comment layout , scrollbar-gutter could help but probably not enough ... anyhow out side of this PR. But feel free to play with it and post your findings if you can.
Made the change to support also unbranded f440636 |
8c71046 to
f440636
Compare
-Added edit icon for a quick action to edit a comment -Date and resolved state moved to card bottom for cleaner header and more natural information flow -Improved and balanced cool-annotation alignments -Remove img opacity from active comment cards Signed-off-by: Banobe Pascal <[email protected]> Change-Id: I990ff8e706640955690a2502ffa64d35babc67eb
Signed-off-by: Banobe Pascal <[email protected]> Change-Id: I16a01161df2019a877e916e15548937ddbc15d26
-Updated test selector to click `.cool-annotation-menu` instead of
'.cool-annotation-menubar' since the menubar now contains multiple
menu items ('.cool-annotation-menu' and '.cool-annotation-menu-edit').
Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: Id9b7bf4bd067308bab1d21adbc6611d8302594fd
-The scrollbar in annotation content was oversized, taking up unnecessary space. -Introduced --scrollbar-color variable with light/dark theme values and set scrollbar-width to thin for improved visual consistency. -Added color-text-date to use annotation date for light/dark theme -Added box-sizing to annotation menu buttons -Added --color-background-lighter to annotation-img outline Signed-off-by: Banobe Pascal <[email protected]> Change-Id: I1fba2aaa00bf5f878ef308fc5c7a0267ab61fa67
-Remove duplicate background image from annotation avatar Signed-off-by: Banobe Pascal <[email protected]> Change-Id: Ib4ceabb66d43a543eeb03e6e58502c2a3933ce73
f440636 to
936d477
Compare
|
@gokaysatir can you please check the small JS changes? thanks! |
gokaysatir
left a comment
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.
Mostly design related and @pedropintosilva already checked it intensely as i see. Looks good to me. Thanks.











Change-Id: Iaefc7d1528b8273e53b669ff903075604358f8b8
Summary
PREVIEW
Checklist
make prettier-writeand formatted the code.make checkmake runand manually verified that everything looks okay