Skip to content

Commit 75c801a

Browse files
committed
Switch to using an IconButton for the patching button.
1 parent fa47c8a commit 75c801a

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

src/components/pages/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
*/
44
import React, { Component } from 'react';
55
import { CSSTransition } from 'react-transition-group';
6-
import Gridicon from 'gridicons';
6+
7+
/**
8+
* WordPress dependencies
9+
*/
10+
import { IconButton } from '@wordpress/components';
711

812
/**
913
* Internal dependencies
@@ -52,14 +56,13 @@ class Pages extends Component {
5256
<h1 className="pages__page-title">
5357
{ page.heading }
5458
</h1>
55-
{ activePage !== 3 &&
56-
<button
59+
{ activePage === 0 &&
60+
<IconButton
5761
className="pages__page-patching-button"
5862
onClick={ () => this.setActivePage( 3 ) }
59-
title="Apply and upload patches"
60-
>
61-
<Gridicon icon="code" />
62-
</button>
63+
icon="editor-code"
64+
label="Apply and upload patches"
65+
/>
6366
}
6467
<PreferencesButton
6568
activePage={ activePage }

src/components/pages/style.scss

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,7 @@
9999
margin: 0 0 0 5px;
100100
}
101101

102-
.preferences-button {
102+
.pages__page-patching-button {
103103
margin-left: auto;
104104
}
105-
106-
&__page-patching-button {
107-
border: none;
108-
background: none;
109-
cursor: pointer;
110-
111-
.gridicon {
112-
fill: #82878C;
113-
}
114-
}
115105
}

0 commit comments

Comments
 (0)