-
Notifications
You must be signed in to change notification settings - Fork 11
fix(popover): arrow tracks trigger on collision shift #533
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
MaxLee-dev
wants to merge
14
commits into
main
Choose a base branch
from
fix-popover-arrow-collision-shift
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 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d194931
feat: implement arrow positioning for popover and tooltip components
MaxLee-dev d0fc992
fix: reorder import statements in popover and tooltip components
MaxLee-dev 4d20861
feat: enhance popover and tooltip components with inline-start and in…
MaxLee-dev b91ff6b
fix: format Tooltip.Popup positionerElement for better readability
MaxLee-dev d0948d8
fix: format Tooltip.Popup positionerElement for improved readability
MaxLee-dev 4f91f56
fix: update arrow positioning logic in popover and tooltip components…
MaxLee-dev 7770ba1
fix: update popover and tooltip components to include arrowPadding st…
MaxLee-dev 66cafc6
Merge branch 'main' of https://github.com/goorm-dev/vapor-ui into fix…
MaxLee-dev 068d402
fix(tooltip): remove border from popup style and adjust arrow positio…
MaxLee-dev c278169
fix(popover): adjust arrow positioning and styles for better alignment
MaxLee-dev 2e9951c
feat(core): add useLatest hook for stable ref access to latest values
MaxLee-dev 466a057
refactor(core): integrate side style into useArrowPosition and improv…
MaxLee-dev ab4d8a5
refactor(core): simplify arrow style usage in tooltip, popover, navig…
MaxLee-dev 1825205
chore: format
MaxLee-dev 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Binary file modified
BIN
+17.2 KB
(120%)
packages/core/__tests__/screenshots/popover--test-bed-1-chrome-darwin-.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
+17.2 KB
(120%)
packages/core/__tests__/screenshots/popover--test-bed-1-edge-darwin-.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
+23.6 KB
(120%)
packages/core/__tests__/screenshots/popover--test-bed-1-firefox-darwin-.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
+23.5 KB
(120%)
packages/core/__tests__/screenshots/popover--test-bed-1-safari-darwin-.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
+8.1 KB
(130%)
packages/core/__tests__/screenshots/tooltip--test-bed-1-chrome-darwin-.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
+8.1 KB
(130%)
packages/core/__tests__/screenshots/tooltip--test-bed-1-edge-darwin-.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
+16.1 KB
(130%)
packages/core/__tests__/screenshots/tooltip--test-bed-1-firefox-darwin-.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
+14.2 KB
(130%)
packages/core/__tests__/screenshots/tooltip--test-bed-1-safari-darwin-.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,26 +22,5 @@ export const arrow = componentStyle({ | |
|
|
||
| width: vars.size.dimension[100], | ||
| height: vars.size.dimension[200], | ||
|
|
||
| transform: 'rotate(180deg)', | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As the icons for all components are positioned relative to the bottom arrow, this transform has been removed. |
||
| zIndex: 1, | ||
|
|
||
| selectors: { | ||
| '&[data-side="top"]': { | ||
| bottom: '-11px', | ||
| transform: 'rotate(-90deg)', | ||
| }, | ||
| '&[data-side="right"]': { | ||
| left: '-7px', | ||
| transform: 'rotate(0deg)', | ||
| }, | ||
| '&[data-side="bottom"]': { | ||
| top: '-11px', | ||
| transform: 'rotate(90deg)', | ||
| }, | ||
| '&[data-side="left"]': { | ||
| right: '-7px', | ||
| transform: 'rotate(180deg)', | ||
| }, | ||
| }, | ||
| }); | ||
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.
Unlike tooltips and popovers, the navigation menu contains multiple triggers within the Root. As a result, there are limitations to specifying the trigger element using a ref, so the element is managed via state.