-
Notifications
You must be signed in to change notification settings - Fork 657
AnchoredOverlay: Add Popover API, modifications to CSS anchor positioning #7677
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
Open
TylerJDev
wants to merge
25
commits into
main
Choose a base branch
from
tylerjdev/add-popover-support-css-anchor-positioning
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f3f47cc
Add popover support
TylerJDev 5097f19
Rename attr
TylerJDev 40e2f4a
add `!important
TylerJDev 00a8e7f
Update
TylerJDev 7e1dcf4
Use `data-*` instead of class
TylerJDev e575092
Handle case for external anchors
TylerJDev 546756e
Add onto popover support
TylerJDev 2a9675e
Ensure anchors/overlays get unique names
TylerJDev c2850b0
Fix bug where buttons would get wrong border styles
TylerJDev 6510f42
Remove Wrapper
TylerJDev 2d29a81
Add changeset
TylerJDev 08ea48e
Add story to e2e
TylerJDev 42672b2
Add test
TylerJDev 61594c3
Fix tests
TylerJDev 1c6dadf
Add portal usage
TylerJDev c955513
Update test
TylerJDev 8cf24f3
Disable portal by default
TylerJDev 4a10d22
Fix for test
TylerJDev d8d2234
Attempt to fix bug
TylerJDev 957b5d8
Fix test
TylerJDev 6686023
Only added to `AnchoredOverlay`
TylerJDev 800f011
test(vrt): update snapshots
TylerJDev a39e179
Update packages/react/src/AnchoredOverlay/AnchoredOverlay.tsx
TylerJDev 3d5682f
Address feedback
TylerJDev d7af05c
Make prop private
TylerJDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@primer/react': minor | ||
| --- | ||
|
|
||
| AnchoredOverlay: Add Popover API to AnchoredOverlay (behind `primer_react_css_anchor_positioning` feature flag) |
Binary file added
BIN
+28.2 KB
...rlay-Multiple-Overlays-External-anchor-1-light-css-anchor-positioning-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29 KB
...s-snapshots/AnchoredOverlay-Multiple-Overlays-External-anchor-1-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.3 KB
...rlay-Multiple-Overlays-External-anchor-2-light-css-anchor-positioning-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.2 KB
...s-snapshots/AnchoredOverlay-Multiple-Overlays-External-anchor-2-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.6 KB
...Overlay-Multiple-Overlays-renderAnchor-1-light-css-anchor-positioning-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.4 KB
...t.ts-snapshots/AnchoredOverlay-Multiple-Overlays-renderAnchor-1-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.4 KB
...Overlay-Multiple-Overlays-renderAnchor-2-light-css-anchor-positioning-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.1 KB
...t.ts-snapshots/AnchoredOverlay-Multiple-Overlays-renderAnchor-2-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.6 KB
(130%)
.../AnchoredOverlay-Overlay-Props-Overrides-light-css-anchor-positioning-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
curious, why do we need important here? Are there any overrides in dotcom that this might break?
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 was a case where
positionwas being overridden (example: https://github.com/github/github-ui/pull/16228). The!importantwill most likely be temporary, as we can probably make the selector take precedence in regards to specificity.