-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: nested popover #2649
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
feat: nested popover #2649
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
48247e8
Move popover types to separate file
TatianaFomina 57242bf
tmp
TatianaFomina 2609ac5
open top
TatianaFomina 1c7925d
Fix bug with keyboard navigation
TatianaFomina 86142f9
Fix bug with scroll
TatianaFomina 6be9cf2
Fix mobile
TatianaFomina 44a63ac
Add popover header class
TatianaFomina 77d0dcd
Display nested items on mobile
TatianaFomina 04d2948
Refactor history
TatianaFomina 2f9d0fb
Fix positioning on desktop
TatianaFomina 9821a3f
Fix tests
TatianaFomina 8e65390
Fix child popover indent left
TatianaFomina cef51c7
Fix ts errors in popover files
TatianaFomina 6871c0a
Move files
TatianaFomina de7c00e
Rename cn to bem
TatianaFomina d19665c
Clarify comments and rename method
TatianaFomina 6502e71
Refactor popover css classes
TatianaFomina 6dd5141
Rename cls to css
TatianaFomina 1c2dc42
Split popover desktop and mobile classes
TatianaFomina cf222e8
Add ability to open popover to the left if not enough space to open t…
TatianaFomina b761e4a
Add nested popover test
TatianaFomina f36cb86
Add popover test for mobile screens
TatianaFomina da00f16
Fix tests
TatianaFomina fe4cdf6
Add union type for both popovers
TatianaFomina b056297
Merge branch 'next' into feat/nested-popover
TatianaFomina ce35b59
Add global window resize event
TatianaFomina 75d8476
Multiple fixes
TatianaFomina 7fab576
Move nodes initialization to constructor
TatianaFomina 0bce02c
Rename handleShowingNestedItems to showNestedItems
TatianaFomina b13f8c0
Replace WindowResize with EditorMobileLayoutToggled
TatianaFomina dcdb8fb
New doze of fixes
TatianaFomina c2a7c8f
Review fixes
TatianaFomina acd2710
Fixes
TatianaFomina b5fbccb
Fixes
TatianaFomina 325aeac
Make each nested popover decide itself if it should open top
TatianaFomina 5942b18
Update changelog
TatianaFomina 7611e0a
Update changelog
TatianaFomina 03aa22c
Update changelog
TatianaFomina 2d9d73a
Merge branch 'next' into feat/nested-popover
TatianaFomina 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Fired when editor mobile layout toggled | ||
*/ | ||
export const EditorMobileLayoutToggled = 'editor mobile layout toggled'; | ||
|
||
/** | ||
* Payload that will be passed with the event | ||
*/ | ||
export interface EditorMobileLayoutToggledPayload { | ||
/** | ||
* True, if mobile layout enabled | ||
*/ | ||
isEnabled: boolean; | ||
} | ||
|
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
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.
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.
this.popover?.flipper
should work the same hereThere 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.
Nah, there will be TypeScript error. Property
flipper
exists only in PopoverDesktop and not in PopoverMobile, that's why we need to check weather the property is present