Skip to content

Commit 766cb82

Browse files
getting rid of OS-formatted buttons
1 parent 62e2d0c commit 766cb82

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

src/PivotTableUI.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@ class DraggableAttribute extends React.Component {
6565
onChange={e => this.setState({filterText: e.target.value})}
6666
/>
6767
<br />
68-
<button type="button"
68+
<a role="button" className="pvtButton"
6969
onClick={() => this.props.removeValuesFromFilter(this.props.name,
7070
Object.keys(this.props.attrValues).filter(this.matchesFilter.bind(this)))}
7171
>
7272
Select {values.length === shown.length ? 'All' : shown.length}
73-
</button> <button type="button"
73+
</a> <a role="button" className="pvtButton"
7474
onClick={() => this.props.addValuesToFilter(this.props.name,
7575
Object.keys(this.props.attrValues).filter(this.matchesFilter.bind(this)))}
7676
>
7777
Deselect {values.length === shown.length ? 'All' : shown.length}
78-
</button>
78+
</a>
7979
</p>
8080
}
8181

src/pivottable.css

+36
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ table.pvtTable tbody tr td {
179179
top: 5px;
180180
font-size: 18px;
181181
cursor: pointer;
182+
text-decoration: none !important;
182183
}
183184

184185
.pvtDragHandle {
@@ -190,6 +191,41 @@ table.pvtTable tbody tr td {
190191
color: #A2B1C6;
191192
}
192193

194+
.pvtButton {
195+
color: #506784;
196+
border-radius: 5px;
197+
padding: 3px 6px;
198+
background: #F2F5FA;
199+
border: 1px solid;
200+
border-color: #C8D4E3;
201+
font-size: 14px;
202+
margin: 3px;
203+
transition: 0.34s all cubic-bezier(0.19,1,0.22,1);
204+
text-decoration: none !important;
205+
}
206+
207+
.pvtButton:hover {
208+
background: #E2E8F0;
209+
border-color: #A2B1C6;
210+
}
211+
212+
.pvtButton:active {
213+
background: #D1DAE6;
214+
}
215+
216+
.pvtFilterBox input {
217+
border: 1px solid #C8D4E3;
218+
border-radius: 5px;
219+
color: #506784;
220+
padding: 0 3px;
221+
font-size: 14px;
222+
}
223+
224+
.pvtFilterBox input:focus {
225+
border-color: #119DFF;
226+
outline: none;
227+
}
228+
193229
.pvtFilterBox{
194230
z-index: 100;
195231
width: 300px;

0 commit comments

Comments
 (0)