-
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
Appender: fix outside canvas styles #66630
Merged
Merged
Changes from all commits
Commits
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 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 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 |
---|---|---|
|
@@ -62,24 +62,12 @@ | |
} | ||
} | ||
|
||
// The black plus that shows up on the right side of an empty paragraph block, or the initial appender | ||
// that exists only on empty documents. | ||
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter, | ||
.block-editor-default-block-appender .block-editor-inserter { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
line-height: 0; | ||
|
||
&:disabled { | ||
display: none; | ||
} | ||
} | ||
Comment on lines
-68
to
-77
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. |
||
|
||
|
||
/** | ||
* Fixed position appender. | ||
* These styles apply to all in-canvas inserters that exist inside nesting containers. | ||
* Fixed position appender (right bottom corner). | ||
* | ||
* These styles apply to all in-canvas inserters. All in-canvas inserters always | ||
* exist within a block. | ||
*/ | ||
|
||
.block-editor-block-list__block .block-list-appender { | ||
|
@@ -96,6 +84,10 @@ | |
line-height: 0; | ||
} | ||
|
||
.block-editor-inserter:disabled { | ||
display: none; | ||
} | ||
|
||
.block-editor-default-block-appender { | ||
height: $button-size-small; | ||
} | ||
|
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.
In an empty document the classnames in use for the default appender appear to be
.block-editor-default-block-appender .block-editor-inserter
. Was that rule removed intentionally when moving to this separate file?Also, it looks like the markup for the default block appender is rendered inside the iframe rather than outside it — so we might still need that rule in
content.scss
, unless there's another way to go about this. Here's where the default appender lives:gutenberg/packages/block-editor/src/components/default-block-appender/index.js
Lines 94 to 99 in f699d2b