Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(css): styling issue
Browse files Browse the repository at this point in the history
remove forced margin top when no folder style exists
  • Loading branch information
eddier committed Mar 9, 2017
1 parent e7fea3d commit 21ab353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/accordian/Accordian.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class Accordian extends React.Component {
render() {
let borderClass = '';
if (this.props.noBorder){
borderClass = 'noborder';
borderClass = 'accordian__noborder';
}
if (this.props.folder){
borderClass += ' accordian__folderpad'
}
return (
<Flexbox flexDirection="column" className={`accordian__row ${borderClass}`} key={this.props.data.id}>
Expand Down
8 changes: 5 additions & 3 deletions src/styles/components/accordian.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
@import '../variables.css';

.noborder{
.accordian__noborder{
border: 0px !important;
}

.accordian__folderpad{
margin-top: 10px;
}

.accordian__row{
border: 1px solid #D0D2D3;
background-color: white;
position: relative;
min-height: 60px;
margin-top:10px;

& .topedge{
height: 10px;
border: 1px solid #D0D2D3;
Expand Down

0 comments on commit 21ab353

Please sign in to comment.