-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Try using left borders for hover + selection states #14145
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
7441319
Add thick borders to the left of blocks when they're hovred + selected.
kjellr 583223c
Add thick left border to the page title.
kjellr 021232b
Turn off block toolbar centering for alignwide blocks.
kjellr 3723174
Move block breadcrump to the left side, position it on top of the block.
kjellr 56a8edb
Clean up the block toolbar's left border.
kjellr 77cf04b
Use inset borders on mobile.
kjellr 65fafa4
Prevent inset borders from overlapping with full-bleed content.
kjellr b9c6259
Use a gray border instead of a blue one on hover.
kjellr 5a076a1
Use a sass variable to define the left block border width
youknowriad bfa8039
Fix breadcrumb potision for alignfull blocks.
kjellr 8b927e2
Clean up breadcrumb position for left & right-aligned blocks.
kjellr b958f40
Sync block mover animation up with the hover state.
kjellr bf457e9
Merge branch 'master' into try/left-block-borders
kjellr 2009f9c
Merge branch 'master' into try/left-block-borders
kjellr 4024095
Darken focused block borders slightly.
kjellr c1de2bd
Switch to using border instead of outline for block borders.
kjellr f4468b2
Make this work better with Windows High Contrast Mode
kjellr 7f52808
Adjust z-index of border + breadcrumb for child blocks.
kjellr a658491
Remove extra z-index rule from the block border.
kjellr 2b41bb8
Remove extra z-index rule from the block border. Minor description cl…
kjellr bdcedbc
Ensure these styles are compatible with Top Toolbar mode.
kjellr ea4e64e
Use the new gray value for the mobile toolbar border.
kjellr 130d84f
Add a matching left border to the post permalink area above the title.
kjellr 047e1e4
Improve border position for mobile screens, especially for elements t…
kjellr 8109dfa
Remove a couple unnecessary border updates from 047e1e4.
kjellr 147f151
Clean up bugs related to the hover + focus states of the classic edit…
kjellr 95ae7d9
Classic Block toolbar icon cleanup.
kjellr 30a2801
Reusable Block border cleanup.
kjellr 82560f9
Keeping a light border on the classic block when it's inactive.
kjellr f6da176
Clean up borders on warning blocks.
kjellr 36b0441
Merge branch 'master' into try/left-block-borders
kjellr 11489aa
Switch to a solid color border color for the permalink box.
kjellr 023dc6c
Merge branch 'master' into try/left-block-borders
kjellr e0ae429
Update z-index rule name to match the one used in the latest merge.
kjellr 12e5368
Combine full-wide toolbar centering rules.
kjellr c3b6c3b
Add a darker hover state for dark themes.
kjellr 9b5325f
Remove the left toolbar border on mobile screens.
kjellr 3c744b6
Merge branch 'master' into try/left-block-borders
kjellr 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
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
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
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.
Should it be on the left, or on the right?
There are still existing styles which assume right-placement for the wide/full hover label:
gutenberg/packages/block-editor/src/components/block-list/style.scss
Lines 427 to 430 in e209cfb
I'm supposing that left placement is reasonable only in part due to the regression of #14817
Fixing #14817 introduces an undesirable overlap:
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.
Follow-up: #15022 (proposes moving to the right)