Skip to content

Commit

Permalink
feat(modals): close icon, resolves epicmaxco#207
Browse files Browse the repository at this point in the history
  • Loading branch information
smartapant committed May 10, 2018
1 parent 86b03a6 commit d39c9b6
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
<div class="modal-title">
<slot name="title"></slot>
</div>

<i
class="ion ion-md-close close-modal"
v-if="closeIconShown"
@click.prevent="cancel"
/>
</slot>
</div>
<!--Container-->
Expand Down Expand Up @@ -69,6 +75,10 @@
type: String,
default: 'btn btn-secondary'
},
closeIconShown: {
type: Boolean,
default: true
},
okDisabled: {
type: Boolean,
default: false
Expand Down Expand Up @@ -182,6 +192,13 @@
align-items: center;
}
.close-modal {
margin-left: 1rem;
font-size: $font-size-large;
line-height: $font-size-large;
cursor: pointer;
}
.modal-content {
border-radius: $modal-content-border-radius;
}
Expand Down

0 comments on commit d39c9b6

Please sign in to comment.