Skip to content

Commit ef31fd9

Browse files
479-user-pics-misaligned-in-issues-assignment-view (#2242)
* 479-user-pics-misaligned-in-issues-assignment-view * Update avatar-stack.scss - Not last child means that each stacking avatar would remove the border-right which is necessary to stack correctly. The presentational order is right to left not left to right. * Create smooth-crabs-protect.md * Update avatar-stack.scss - Fixed pointer to the anchor element * Update .changeset/smooth-crabs-protect.md - removed branch name from changeset Co-authored-by: Jon Rohan <[email protected]> Co-authored-by: Jon Rohan <[email protected]>
1 parent cbc0d32 commit ef31fd9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changeset/smooth-crabs-protect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
This border change was made to ensure that assignee avatars would stack next to one another correctly.

src/avatars/avatar-stack.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
// stylelint-enable selector-max-type
5757

5858
// Account for 4+ avatars
59-
&:nth-child(n+4) {
59+
&:nth-child(n + 4) {
6060
display: none;
6161
opacity: 0;
6262
}
@@ -68,7 +68,7 @@
6868
margin-right: 3px;
6969
}
7070

71-
.avatar:nth-child(n+4) {
71+
.avatar:nth-child(n + 4) {
7272
display: flex;
7373
opacity: 1;
7474
}
@@ -118,6 +118,10 @@
118118
// stylelint-disable-next-line primer/spacing
119119
margin-left: 3px;
120120
}
121+
122+
.avatar:not(:last-child) {
123+
border-left: 0;
124+
}
121125
}
122126

123127
.avatar.avatar-more {

0 commit comments

Comments
 (0)