Skip to content

Commit

Permalink
Chrome: Fix Post Visibility Z-index
Browse files Browse the repository at this point in the history
Also adds an aria-label to the excerpt
  • Loading branch information
youknowriad committed May 23, 2017
1 parent c251345 commit 061937f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions editor/assets/stylesheets/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $z-layers: (
'.editor-visual-editor__block {core/image aligned left or right}': 10,
'.editor-visual-editor__block-controls': 1,
'.editor-header': 20,
'.editor-post-visibility__dialog': 30,
);

@function z-index( $key ) {
Expand Down
1 change: 1 addition & 0 deletions editor/sidebar/post-excerpt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function PostExcerpt( { excerpt, onUpdateExcerpt } ) {
onChange={ onChange }
value={ excerpt }
placeholder={ __( 'Write an excerpt (optional)' ) }
aria-label={ __( 'Excerpt' ) }
/>
<a href="https://codex.wordpress.org/Excerpt" target="_blank">
{ __( 'Learn more about manual excerpts' ) }
Expand Down
1 change: 1 addition & 0 deletions editor/sidebar/post-visibility/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
background: $white;
padding: 10px;
min-width: 240px;
z-index: z-index( '.editor-post-visibility__dialog' );
}

.editor-post-visibility__dialog-arrow {
Expand Down

0 comments on commit 061937f

Please sign in to comment.