Skip to content

Commit

Permalink
Merge branch 'main' into mp/inactive-actionlist-item
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti authored Nov 7, 2023
2 parents 7f2fcfc + 9daea96 commit 99a297e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .changeset/itchy-turtles-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@primer/react": patch
---

AvatarStack: Both `disableExpand` and `rightAlign` can be passed together now


2 changes: 1 addition & 1 deletion src/AvatarStack/AvatarStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const AvatarStackWrapper = styled.span<StyledAvatarStackWrapperProps>`
.pc-AvatarStackBody {
flex-direction: row-reverse;
&:hover {
&:not(.pc-AvatarStack--disableExpand):hover {
.pc-AvatarItem {
margin-right: ${get('space.1')}!important;
margin-left: 0 !important;
Expand Down
4 changes: 2 additions & 2 deletions src/Button/Button.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
},
{
"name": "variant",
"type": "| 'default'\n| 'primary'\n| 'danger'\n| 'outline'\n| 'invisible'",
"type": "'default'\n| 'primary'\n| 'danger'\n| 'invisible'",
"defaultValue": "'default'",
"description": "Change the visual style of the button."
},
{
"name": "size",
"type": "| 'small'\n| 'medium'\n| 'large'",
"type": "'small'\n| 'medium'\n| 'large'",
"defaultValue": "'medium'"
},
{
Expand Down
8 changes: 4 additions & 4 deletions src/__tests__/__snapshots__/AvatarStack.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ exports[`Avatar renders consistently 1`] = `
flex-direction: row-reverse;
}
.c0.pc-AvatarStack--right .pc-AvatarStackBody:hover .pc-AvatarItem {
.c0.pc-AvatarStack--right .pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover .pc-AvatarItem {
margin-right: 4px!important;
margin-left: 0 !important;
}
.c0.pc-AvatarStack--right .pc-AvatarStackBody:hover .pc-AvatarItem:first-child {
.c0.pc-AvatarStack--right .pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover .pc-AvatarItem:first-child {
margin-right: 0 !important;
}
Expand Down Expand Up @@ -267,12 +267,12 @@ exports[`Avatar respects alignRight props 1`] = `
flex-direction: row-reverse;
}
.c0.pc-AvatarStack--right .pc-AvatarStackBody:hover .pc-AvatarItem {
.c0.pc-AvatarStack--right .pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover .pc-AvatarItem {
margin-right: 4px!important;
margin-left: 0 !important;
}
.c0.pc-AvatarStack--right .pc-AvatarStackBody:hover .pc-AvatarItem:first-child {
.c0.pc-AvatarStack--right .pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover .pc-AvatarItem:first-child {
margin-right: 0 !important;
}
Expand Down

0 comments on commit 99a297e

Please sign in to comment.