Skip to content

Commit aac1fc2

Browse files
authored
Merge pull request #90 from Pilpin/master
fix(dependencies): removing @ng-bootstrap/ng-bootstrap from the dependencies
2 parents 7cbd688 + ef30dec commit aac1fc2

File tree

6 files changed

+103
-97
lines changed

6 files changed

+103
-97
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export class AppComponent implements AfterViewInit {
168168
this.hotkeys.registerHelpModal(() => {
169169
const ref = this.modalService.open(HotkeysHelpComponent, { size: 'lg' });
170170
ref.componentInstance.title = 'Custom Shortcuts Title';
171+
ref.componentInstance.dismiss.subscribe(() => ref.close());
171172
});
172173
}
173174
}

package-lock.json

+97-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/ngneat/hotkeys/src/lib/hotkeys-help/hotkeys-help.component.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<div class="modal-header">
22
<div *ngIf="title" class="hotkeys-help-header">
33
<span class="hotkeys-help-header-title">{{ title }}</span>
4-
<button
5-
type="button"
6-
class="hotkeys-help-header-dismiss-button"
7-
(click)="activeModal.dismiss('Cross click')"
8-
></button>
94
</div>
5+
<button type="button" class="hotkeys-help-header-dismiss-button" (click)="handleDismiss()">&#x2715;</button>
106
</div>
117
<div class="modal-body preview-modal-body">
128
<table class="hotkeys-table-help" cellspacing="0" width="100%" *ngFor="let hotkeyGroup of hotkeys">

projects/ngneat/hotkeys/src/lib/hotkeys-help/hotkeys-help.component.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
.hotkeys-help-header {
4545
font-size: 1.25em;
46-
margin-bottom: 1.25em;
4746
display: flex;
4847
flex-direction: row;
4948
justify-content: space-between;
@@ -57,7 +56,7 @@
5756
.hotkeys-help-header-dismiss-button {
5857
border: none;
5958
font-size: 18px;
60-
color: #9e9e9e;
59+
background: transparent;
6160
cursor: pointer;
6261
&:focus {
6362
outline: none;

0 commit comments

Comments
 (0)