Skip to content

Commit

Permalink
Link format: add aria label, remove 'x' in IE (#3234)
Browse files Browse the repository at this point in the history
Fixes: #2667
  • Loading branch information
notnownikki committed Oct 31, 2017
1 parent b42dbed commit 31b1e14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions blocks/editable/format-toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ class FormatToolbar extends Component {
<UrlInput value={ newLinkValue } onChange={ this.onChangeLinkValue } />
<IconButton icon="editor-break" label={ __( 'Apply' ) } type="submit" />
<IconButton icon="editor-unlink" label={ __( 'Remove link' ) } onClick={ this.dropLink } />
<IconButton icon="admin-generic" onClick={ this.toggleLinkSettingsVisibility } aria-expanded={ settingsVisible } />
<IconButton
icon="admin-generic"
label={ __( 'Link Settings' ) }
onClick={ this.toggleLinkSettingsVisibility }
aria-expanded={ settingsVisible } />
{ linkSettings }
</form>
</Fill>
Expand All @@ -203,7 +207,11 @@ class FormatToolbar extends Component {
</a>
<IconButton icon="edit" label={ __( 'Edit' ) } onClick={ this.editLink } />
<IconButton icon="editor-unlink" label={ __( 'Remove link' ) } onClick={ this.dropLink } />
<IconButton icon="admin-generic" onClick={ this.toggleLinkSettingsVisibility } aria-expanded={ settingsVisible } />
<IconButton
icon="admin-generic"
label={ __( 'Link Settings' ) }
onClick={ this.toggleLinkSettingsVisibility }
aria-expanded={ settingsVisible } />
{ linkSettings }
</div>
</Fill>
Expand Down
3 changes: 3 additions & 0 deletions blocks/url-input/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
border: none;
outline: none;
box-shadow: none;
&::-ms-clear {
display: none;
}
}

&:focus {
Expand Down

0 comments on commit 31b1e14

Please sign in to comment.