-
Notifications
You must be signed in to change notification settings - Fork 661
AnchoredOverlay: Add support for CSS anchor positioning #7604
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
Merged
Merged
Changes from 35 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
cad3f82
Init tests
TylerJDev 89c1fe9
Add back `fixed`
TylerJDev c6dd31c
Add feature flag
TylerJDev eea8dd5
Add `data-*`
TylerJDev b05fca7
Fix `data-*`
TylerJDev 7ba9406
Add `outside` sides
TylerJDev 794f280
Add as default `true` for test
TylerJDev 8368f2b
chore: auto-fix lint and formatting issues
TylerJDev bafd606
Merge branch 'main' into tylerjdev/css-anchor-positioning
TylerJDev 281f48b
Add scope
TylerJDev c8dbbff
chore: auto-fix lint and formatting issues
TylerJDev 8c7d5e4
Fix scope
TylerJDev 2250621
Adjust classname
TylerJDev a043626
Fix lint issues
TylerJDev bd1791d
Make FF `false` by default
TylerJDev 809f5e2
Fix `ActionMenu` classname issue
TylerJDev 54d9f84
Run format
TylerJDev 97a2a35
Fix `ActionMenu` with anchor
TylerJDev 3adb9d7
Make flag `true`
TylerJDev 0a0b120
Revert to `false`
TylerJDev 9c79821
Wrap `AnchoredOverlay` in conditional for FF
TylerJDev b09415c
Add polyfill
TylerJDev d79584d
Add changeset
TylerJDev cdf6b0a
Merge branch 'main' into tylerjdev/css-anchor-positioning
TylerJDev 17108eb
Fix lint
TylerJDev c8b9b8b
Fix lint again
TylerJDev 2958648
test(vrt): update snapshots
TylerJDev 7f38b18
Fix CSS for fullscreen
TylerJDev 46a28ce
test(vrt): update snapshots
TylerJDev f3eef6f
Fix CSS again
TylerJDev 3ce628e
test(vrt): update snapshots
TylerJDev d310e7c
test(vrt): update snapshots
TylerJDev 4b51d94
Merge branch 'main' into tylerjdev/css-anchor-positioning
TylerJDev d66c451
Merge branch 'main' into tylerjdev/css-anchor-positioning
TylerJDev 64633ff
Reset .playwright snapshots to main
TylerJDev 14d7efb
Address feedback
TylerJDev af4ebbb
Fix `ActionMenu` test
TylerJDev 3b881eb
Adjust CSS selector
TylerJDev 452d29e
Adjust `data` selector
TylerJDev 9719114
Adjust CSS
TylerJDev 71f82d4
Adjust CSS once more
TylerJDev 8e85626
Run format
TylerJDev cc5e406
Apply one more condition
TylerJDev bd0e812
Another one
TylerJDev 2b3f2ba
Run lint/format
TylerJDev 592822e
Add important for now
TylerJDev 7587a63
remove important
TylerJDev 96c598d
Fix lint css
TylerJDev 30dab5e
Try dynamic import based on support
TylerJDev d93620c
Add condition to `data-side`
TylerJDev 19ba220
Merge branch 'main' into tylerjdev/css-anchor-positioning
TylerJDev 0b5a876
Add test coverage for CSS anchor positioning feature flag
siddharthkp 98521f3
Add e2e tests for AnchoredOverlay with feature flag variants
siddharthkp 6c91a3b
Update AnchoredOverlay e2e tests
siddharthkp 606b3c9
Add CSS anchor positioning stories and e2e tests
siddharthkp 2fcd605
Fix Fullscreen Variant button name in e2e test
siddharthkp 0f814d5
test(vrt): update snapshots
siddharthkp 23b25b3
test(AnchoredOverlay): reduce VRT tests to light theme only [skip ci]
siddharthkp 02a55be
Merge branch 'main' into anchored-overlay-e2e-tests
siddharthkp 33e1c44
test(vrt): update snapshots
siddharthkp f185ba9
test(AnchoredOverlay): remove non-light theme snapshots
siddharthkp b9ed6e1
test(ActionList): finish tooltip animations before screenshot
siddharthkp 119ac95
test(ActionList): restore tooltip snapshot from main
siddharthkp 24251d1
test(vrt): update snapshots
siddharthkp 0c831e4
test(AnchoredOverlay): wait for images before screenshot
siddharthkp dfb8f35
test(vrt): update snapshots
siddharthkp c59e516
Revert unrelated snapshot change
siddharthkp ef646f9
Reset dialog scroll position before screenshot
siddharthkp f6ad2b0
Revert "Reset dialog scroll position before screenshot"
siddharthkp 450d80f
test(vrt): update snapshots
siddharthkp 28e44fd
Add scroll position debugging to dialog screenshots
siddharthkp e89111b
within dialog: more stable even if a little incorrect snapshots
siddharthkp 8d1be53
remove flaky tests
siddharthkp e0555d9
Simplify AnchoredOverlay e2e tests, remove problematic dialog tests
siddharthkp 741fe2f
Merge branch 'anchored-overlay-e2e-tests' into tylerjdev/css-anchor-p…
siddharthkp 70f2f98
test(vrt): update snapshots
siddharthkp b059e72
copy e2e/ActionMenu.test.ts as well
siddharthkp f469574
generate snapshots for ActionMenu
siddharthkp 166ab31
Merge branch 'anchored-overlay-e2e-tests' into tylerjdev/css-anchor-p…
siddharthkp d9ba75d
test(vrt): update snapshots
siddharthkp aa4dfc4
Restore ActionList snapshot files from main
siddharthkp 486d5b3
test(vrt): update snapshots
siddharthkp be5aed6
reset flaky actionlist test
siddharthkp 2bb453d
Merge branch 'main' into tylerjdev/css-anchor-positioning
siddharthkp 870039c
Merge branch 'main' into tylerjdev/css-anchor-positioning
francinelucca 4471c00
force css-tree 3.1.0
siddharthkp 1364a4d
Revert "force css-tree 3.1.0"
siddharthkp 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 CSS Anchor Positioning to `AnchoredOverlay` (under a feature flag) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
We're more explicit about the classname in this file, as we append a class directly to the
renderAnchor.