-
Notifications
You must be signed in to change notification settings - Fork 21
feat(components): update post-popovercontainer animation and fix menu trigger and focus delays #6579
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
myrta2302
wants to merge
43
commits into
main
Choose a base branch
from
6538-bug-fix-post-menu-animation
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
feat(components): update post-popovercontainer animation and fix menu trigger and focus delays #6579
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
5736d8f
update animation logic and fix focus and trigger style delay
myrta2302 137d4fc
add animation prop to breadcrumbs
myrta2302 12c1ebe
update documentation examples
myrta2302 49b054d
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 7d49eb2
restore toggleMenu emit
myrta2302 acc0a7e
revert test
myrta2302 69c496a
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 7eb2f39
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 c82051b
update animation props logic
myrta2302 013d70d
revert file
myrta2302 e39b70d
emit events also for no animation case
myrta2302 698b33b
show control only for menu variant
myrta2302 799d860
fix e2e error
myrta2302 aec4869
add changeset
myrta2302 eab4e5f
review comments update
myrta2302 46ba2f7
changeset update
myrta2302 947679b
minor
myrta2302 f5dac59
generalize animation run
myrta2302 6f2e62f
fix e2e error
myrta2302 7328a02
minor
myrta2302 ad74696
fix e2e error
myrta2302 46d9592
minor
myrta2302 a7d1ca4
update
myrta2302 87ab0af
identation error
myrta2302 3e79ea0
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 00b54f1
fix tooltip misync
myrta2302 1fad5bc
tooltip fix and obsolete focus logic removal
myrta2302 53c41f5
fix e2e test error
myrta2302 afe29ae
revert console logs
myrta2302 c855b0b
lint error again
myrta2302 68fd70c
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 64d07bb
remove obsolete logic
myrta2302 3feb44f
revert file
myrta2302 5370cf2
revert adding props in language switch and breadcrumbs
myrta2302 17ec978
Update seven-breads-press.md
myrta2302 29bac1c
revert files
myrta2302 1ce729a
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 c2857ce
update post-menu animation
myrta2302 877f53a
updated popovercontainer
myrta2302 010d01d
lint error
myrta2302 31c0035
update
myrta2302 2251b43
lint error
myrta2302 6b991e2
Merge branch 'main' into 6538-bug-fix-post-menu-animation
myrta2302 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
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 @@ | ||
| --- | ||
| '@swisspost/design-system-components': minor | ||
| --- | ||
|
|
||
| Enabled a 'pop-in' animation for the `post-breadcrumbs` concatenated version and the `post-language-switch` menu variant components. |
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
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -16,6 +16,7 @@ const meta: MetaComponent = { | |||
| placement: 'bottom', | ||||
| padding: '', | ||||
| backgroundColor: '', | ||||
| animation: 'pop-in', | ||||
| }, | ||||
| argTypes: { | ||||
| id: { | ||||
|
|
@@ -44,6 +45,7 @@ const meta: MetaComponent = { | |||
| }; | ||||
|
|
||||
| function render(args: Args) { | ||||
| console.log(args.animation); | ||||
|
Contributor
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.
Suggested change
|
||||
| // Construct the style string conditionally based on padding and backgroundColor | ||||
| const styles = [ | ||||
| args.padding ? `--post-menu-padding: ${args.padding};` : '', | ||||
|
|
@@ -62,6 +64,7 @@ function render(args: Args) { | |||
| id="${args.id}" | ||||
| placement="${args.placement !== 'bottom' ? args.placement : nothing}" | ||||
| label="Example menu" | ||||
| animation="${args.animation ? args.animation : nothing}" | ||||
| > | ||||
| <post-menu-item><button>Example 1</button></post-menu-item> | ||||
| <post-menu-item><a href="#">Example 2</a></post-menu-item> | ||||
|
|
||||
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.
Uh oh!
There was an error while loading. Please reload this page.