Skip to content

Commit

Permalink
fix: dashboard filter clear button (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland authored Oct 2, 2019
1 parent 1d03334 commit 7e681d5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/components/ControlBar/ClearButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import classes from './styles/ClearButton.module.css';

export const ClearButton = ({ onClear }) => (
<button className={classes.button} onClick={onClear}>
<ClearIcon className={classes.icon} color="action" />
<span>
<ClearIcon className={classes.icon} color="action" />
</span>
</button>
);

Expand Down
14 changes: 8 additions & 6 deletions src/components/ControlBar/styles/ClearButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
border: none;
border-radius: 50%;
cursor: pointer;
margin-left: 5px;
padding: 0px 5px;
vertical-align: text-bottom;
width: 20px;
height: 20px;
width: 24px;
height: 24px;
}

.button > span {
display: flex;
align-items: center;
justify-content: center;
}

.button:focus {
Expand All @@ -16,5 +19,4 @@
.icon {
width: 16px;
height: 16px;
margin-top: 4px;
}
1 change: 1 addition & 0 deletions src/components/ControlBar/styles/DashboardsBar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
height: 36px;
position: relative;
top: 2px;
margin-right: 4px;
}

.rightControls {
Expand Down

0 comments on commit 7e681d5

Please sign in to comment.