Skip to content

Commit

Permalink
Align the visual and hidden label
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 28, 2024
1 parent d3e69fa commit 1d77290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/components/post-sticky/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export default function PostSticky() {
<ToggleControl
className="editor-post-sticky__toggle-control"
label={
<VisuallyHidden>
{ __( 'Stick to the top of the blog' ) }
</VisuallyHidden>
<VisuallyHidden>{ __( 'Sticky' ) }</VisuallyHidden>
}
checked={ postSticky }
onChange={ () => editPost( { sticky: ! postSticky } ) }
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/sidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ test.describe( 'Sidebar', () => {
name: 'Change discussion options',
} );
const postSummarySection = page.getByRole( 'checkbox', {
name: 'Stick to the top of the blog',
name: 'Sticky',
} );

await expect( postExcerptPanel ).toBeVisible();
Expand Down

0 comments on commit 1d77290

Please sign in to comment.