Skip to content

Commit

Permalink
Merge pull request #3 from uptick/bootstrap4-upgrade
Browse files Browse the repository at this point in the history
Bootstrap compatibility for Recurrence input
  • Loading branch information
jlo-1 authored Feb 12, 2019
2 parents 450392f + 1a89179 commit 3f81cf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/recurrence-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

.button {
cursor: pointer;
z-index: 0;
}

.cancel {
Expand Down
10 changes: 6 additions & 4 deletions src/recurrence-input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ class RecurrenceInput extends Component {
<div className={ styles.compact }>
<div className="input-group">
<input type="text" className="form-control" readOnly value={ savedValue } />
<span className={ classNames( 'input-group-addon', styles.button ) }
<div className={ classNames( 'input-group-append', styles.button ) }
onClick={ ::this.handleExpand }>
<span className="glyphicon glyphicon-calendar"></span>
</span>
<button className="btn btn-outline-secondary">
<i className="fa fa-calendar"></i>
</button>
</div>
</div>
{ this.renderHidden() }
</div>
Expand Down Expand Up @@ -225,7 +227,7 @@ class RecurrenceInput extends Component {
{ ruleCom }
<div className="pull-right">
<a className={ styles.cancel } href="#" onClick={ ::this.handleCancel }>Cancel</a>
<button type="button" className={ classNames( 'btn btn-default', styles.save ) }
<button type="button" className={ classNames( 'btn btn-primary', styles.save ) }
onClick={ ::this.handleSave }>
Save
</button>
Expand Down

0 comments on commit 3f81cf8

Please sign in to comment.