Skip to content

Commit

Permalink
fix(popover): update caret styles to offset ::after element (#3204)
Browse files Browse the repository at this point in the history
Co-authored-by: joshblack <[email protected]>
  • Loading branch information
joshblack and joshblack authored Nov 21, 2024
1 parent a91aa93 commit f24feab
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-donuts-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Update caret styles for Popover to correctly position caret in different orientations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/components/primer/beta/popover.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@

&::after {
right: var(--base-size-20);
margin-right: 1px;
}
}

Expand All @@ -111,6 +112,7 @@

&::after {
left: var(--base-size-24);
margin-left: 1px;
}
}

Expand Down Expand Up @@ -165,6 +167,7 @@

&::after {
left: -14px;
margin-bottom: 1px;
/* stylelint-disable-next-line primer/colors */
border-right-color: var(--overlay-bgColor);
}
Expand Down Expand Up @@ -193,6 +196,7 @@

&::after {
bottom: var(--base-size-16);
margin-bottom: 1px;
}
}

Expand Down

0 comments on commit f24feab

Please sign in to comment.