Skip to content

Commit

Permalink
File Block: Remove the "Show Download Button" toggle help text
Browse files Browse the repository at this point in the history
As per discussion in #13429, this help text is redundant and can be removed.

There's still some discussion to be had about adding some sort of "on/off" text to clarify the state for toggles like this, but that should be tackled globally.
  • Loading branch information
kjellr committed Jan 24, 2019
1 parent 884cabf commit 5c1e26a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/block-library/src/file/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import {
import { Fragment } from '@wordpress/element';
import { InspectorControls } from '@wordpress/editor';

function getDownloadButtonHelp( checked ) {
return checked ? __( 'The download button is visible.' ) : __( 'The download button is hidden.' );
}

export default function FileBlockInspector( {
hrefs,
openInNewWindow,
Expand Down Expand Up @@ -51,7 +47,6 @@ export default function FileBlockInspector( {
<PanelBody title={ __( 'Download Button Settings' ) }>
<ToggleControl
label={ __( 'Show Download Button' ) }
help={ getDownloadButtonHelp }
checked={ showDownloadButton }
onChange={ changeShowDownloadButton }
/>
Expand Down

0 comments on commit 5c1e26a

Please sign in to comment.