Skip to content

Commit

Permalink
fix(css): change checkbox classname to avoid conflict with flat-ui cl…
Browse files Browse the repository at this point in the history
…ass name
  • Loading branch information
qingyashu committed Aug 7, 2018
1 parent d3d6a43 commit d61cf88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/CheckBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class CheckBoxGroup extends Component {
: this.props.listItems;

return (
<div className='checkbox'>
<div className='checkbox-group'>
{this.props.title}
{listItems.map(item => (
<div key={item}>
Expand All @@ -69,7 +69,7 @@ export class CheckBoxGroup extends Component {
checked={selectedItems.includes(item)}
onChange={() => this.onChangeBox(item)}
/>
<label className='checkbox__label' htmlFor={item}>{item}</label>
<label className='checkbox-group__label' htmlFor={item}>{item}</label>
</div>
))}
{this.displayOptions()}
Expand Down
6 changes: 3 additions & 3 deletions src/components/CheckBox.less
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.checkbox {
.checkbox-group {
padding: 1em 0;
border-bottom: 2px solid #7d7474;
margin-bottom: 0;
margin-top: 0;
}

.checkbox:last-child {
.checkbox-group:last-child {
border-bottom: 0;
}

.checkbox__label {
.checkbox-group__label {
white-space: nowrap;
text-overflow: ellipsis;
min-width: 0;
Expand Down

0 comments on commit d61cf88

Please sign in to comment.