-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessibility: Show open button when the sidebar is closed and tabbin…
…g out of the content (#19726)
- Loading branch information
Showing
3 changed files
with
75 additions
and
30 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,27 @@ html { | |
} | ||
|
||
.edit-post-editor-regions__sidebar { | ||
display: none; | ||
|
||
@include break-medium() { | ||
display: block; | ||
z-index: z-index(".edit-post-editor-regions__sidebar"); | ||
position: fixed !important; // Need to override the default relative positionning | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
youknowriad
Contributor
|
||
top: -9999em; | ||
bottom: auto; | ||
left: auto; | ||
right: 0; | ||
width: $sidebar-width; | ||
|
||
&:focus { | ||
top: auto; | ||
bottom: 0; | ||
} | ||
} | ||
} | ||
|
||
.is-sidebar-opened .edit-post-editor-regions__sidebar { | ||
This comment has been minimized.
Sorry, something went wrong.
youknowriad
Contributor
|
||
display: block; | ||
width: auto; // Keep the sidebar width flexible. | ||
flex-shrink: 0; | ||
position: absolute; | ||
|
@@ -84,10 +105,6 @@ html { | |
left: 0; | ||
background: $white; | ||
|
||
&:empty { | ||
display: none; | ||
} | ||
|
||
// On Mobile the header is fixed to keep HTML as scrollable. | ||
@include break-medium() { | ||
overflow: auto; | ||
|
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
Any reason for using fixed positionning for the sidebar? This breaks the genericy of the EditorSkeleton component