-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Inserter: Clarify that when the Inserter is open clicking the + button in the top bar will close it again #29759
Changes from 9 commits
b118325
a680c1d
9dbcc74
e3a8268
dd59a7f
d884c1a
7e38d5b
128b6ed
94264f7
944fd6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,17 @@ | |
|
||
.edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle { | ||
display: inline-flex; | ||
|
||
svg { | ||
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; | ||
david-szabo97 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
@include reduce-motion("transition"); | ||
} | ||
|
||
&.is-pressed { | ||
svg { | ||
transform: rotate(45deg); | ||
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. If we go and keep this, it might be nice to update the Figma "small x" icon to be more or less identical to the plus as rotated. 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. Agreed, let's assess in a follow up. 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. (It might already be!) 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. 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. Hah, I bet that when the pixels antialias together the difference is barely perceptible. Of course that won't be good enough for you or me, because we'll know! But I'm happy to push the vectors once we get to it 😄 |
||
} | ||
} | ||
} | ||
|
||
// Hide table of contents and block navigation on mobile. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,17 @@ body.is-navigation-sidebar-open { | |
width: $grid-unit-40; | ||
height: $grid-unit-40; | ||
padding: 0; | ||
|
||
svg { | ||
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; | ||
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. Same as before, include the mixin. |
||
@include reduce-motion("transition"); | ||
} | ||
|
||
&.is-pressed { | ||
svg { | ||
transform: rotate(45deg); | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
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 add a comment explaining why we need both, so future contributors can make good decisions about when to remove.