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
Add more writing flow options: Reduced UI, theme styles, spotlight #22494
Changes from all commits
646fb57
409d0df
f661708
c28c148
adaed29
005c7bc
9881416
c25aa05
877573b
2c82f19
4746463
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 |
---|---|---|
|
@@ -31,10 +31,14 @@ function InsertionPointInserter( { | |
getMultiSelectedBlockClientIds, | ||
getSelectedBlockClientId, | ||
hasMultiSelection, | ||
getSettings, | ||
} = select( 'core/block-editor' ); | ||
const { hasReducedUI } = getSettings(); | ||
if ( hasReducedUI ) { | ||
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. this was intentional to keep it in the tab sequence (show it when you tab into it) |
||
return true; | ||
} | ||
const multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(); | ||
const selectedBlockClientId = getSelectedBlockClientId(); | ||
|
||
return hasMultiSelection() | ||
? multiSelectedBlockClientIds.includes( clientId ) | ||
: clientId === selectedBlockClientId; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,6 +307,7 @@ | |
} | ||
|
||
&:hover:not(:disabled) { | ||
color: $white; | ||
background: $gray-900; | ||
} | ||
} | ||
|
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.
Did we previously not use these styles?
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.
We don't have a way to get just these styles, previously we just received an array containing the editor styles the theme wants, it can or can't include these.
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.
Should we handle file-access failures?
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 file is already loaded that way in Core and in other places in Gutenberg, so I'm not sure we need special treatment here.