Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Commit 12fe4d9

Browse files
committed
Fix CSS issues with date picker component and table hovering
1 parent b066180 commit 12fe4d9

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/components/DatePicker/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ class AntdDatePicker extends Component {
5151
};
5252

5353
render() {
54-
const { selectedDateRange, styles } = this.props;
54+
const { selectedDateRange, style } = this.props;
5555

5656
return (
5757
<RangePicker
5858
separator="to"
59-
style={styles}
59+
style={style}
6060
onChange={this.handleChange}
6161
value={[
6262
selectedDateRange.start ? moment(selectedDateRange.start) : moment().subtract(7, 'day'),

src/components/Table/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function Table({ columns, data, isCheckable, onCompare, loadingData }) {
195195
{page.map(row => {
196196
prepareRow(row);
197197
return (
198-
<tr {...row.getRowProps()}>
198+
<tr className="pf-m-hoverable" {...row.getRowProps()}>
199199
{row.cells.map(cell => {
200200
return (
201201
<td {...cell.getCellProps()}>

src/components/Table/index.less

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
tr:hover td {
2-
font-weight: bold;
3-
}
4-
5-
tr:hover {
6-
background-color: #f5f5f5;
7-
}
8-
91
tr > td > span > a {
102
text-decoration: none !important;
113
color: inherit !important;

0 commit comments

Comments
 (0)