Skip to content

Commit

Permalink
Change all occurrences of 'new window' to 'new tab'. (#10698)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored and tofumatt committed Oct 18, 2018
1 parent 0f8a940 commit c86502b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const settings = {
selector: 'a:not([download])',
attribute: 'href',
},
// e.g. `_blank` when the block is configured to open in a new window
// e.g. `_blank` when the block is configured to open in a new tab
textLinkTarget: {
type: 'string',
source: 'attribute',
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/file/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function FileBlockInspector( {
onChange={ changeLinkDestinationOption }
/>
<ToggleControl
label={ __( 'Open in New Window' ) }
label={ __( 'Open in New Tab' ) }
checked={ openInNewWindow }
onChange={ changeOpenInNewWindow }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/external-link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function ExternalLink( { href, children, className, rel = '', ...addition
<span className="screen-reader-text">
{
/* translators: accessibility text */
__( '(opens in a new window)' )
__( '(opens in a new tab)' )
}
</span>
<Dashicon icon="external" className="components-external-link__icon" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class LinkContainer extends Component {
focusOnMount={ showInput ? 'firstElement' : false }
renderSettings={ () => (
<ToggleControl
label={ __( 'Open in New Window' ) }
label={ __( 'Open in New Tab' ) }
checked={ opensInNewWindow }
onChange={ this.setLinkTarget }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/url-popover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MyURLPopover extends Component {
onClickOutside={ this.closeURLPopover }
renderSettings={ () => (
<ToggleControl
label={ __( 'Open in New Window' ) }
label={ __( 'Open in New Tab' ) }
checked={ opensInNewWindow }
onChange={ this.setTarget }
/>
Expand Down

0 comments on commit c86502b

Please sign in to comment.