-
Notifications
You must be signed in to change notification settings - Fork 171
chore: Finalize drawer animation and visual design #3482
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
Conversation
…ape-design/components into explore-drawer-animation
…lore-drawer-animation
|
||
> .global-drawer-wrapper { | ||
display: grid; | ||
min-inline-size: var(#{custom-props.$drawerSize}); |
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.
min-inline-size
and inline-size
have already been set for the parent element. Why do we need to set them twice?
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.
@@ -140,4 +98,124 @@ $global-drawer-expanded-mode: #{awsui.$motion-duration-refresh-only-slow} #{awsu | |||
display: flex; | |||
align-items: center; | |||
} | |||
|
|||
&.drawer-global { |
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.
Note: When I tried to commit the changes from your patch file, our internal linter pointed out specificity conflicts. So I needed to move the whole block to bottom.
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.
That should not be a case. These style were there before, eslint should be happy with them
|
||
> .global-drawer-wrapper { | ||
inline-size: 100%; | ||
grid-template-columns: 8px 1fr; |
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.
Can we replace this magic number with a token?
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.
Thank you for the callout. Updated and pushed the fix
|
||
> .global-drawer-wrapper { | ||
display: grid; | ||
min-inline-size: var(#{custom-props.$drawerSize}); |
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.
The question still stands: do we really need to set the inline size twice? Based on our earlier discussion, we agreed that it’s not necessary
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.
While inline-size
is not necessary, which I removed, the min-inline-size
is still necessary otherwise the unwanted width change happens.
Uploading Screen Recording 2025-05-13 at 15.54.49.mov…
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.
Ok, should we remove min-inline-size
from the parent selector then?
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.
Yup, I removed it in this commit
Description
This PR:
Related links, issue #, if available: n/a
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.