Skip to content

Commit 1c62d1e

Browse files
authored
fix: Do not override ember-modal-dialog components (#1679)
1 parent 52d8cbe commit 1c62d1e

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

addon/components/docs-header/search-results/index.hbs

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
<div {{did-insert (perform this.search)}} {{did-update (perform this.search) @query}} ...attributes>
1+
<div
2+
{{did-insert (perform this.search)}}
3+
{{did-update (perform this.search) @query}}
4+
...attributes
5+
>
26
{{#if (and this.trimmedQuery this.search.isIdle)}}
3-
<ModalDialog
7+
<DocsModalDialog
48
@tetherTarget="[data-search-box]"
59
@attachment="top left"
610
@clickOutsideToClose={{true}}
@@ -30,6 +34,6 @@
3034
</li>
3135
{{/each}}
3236
</ul>
33-
</ModalDialog>
37+
</DocsModalDialog>
3438
{{/if}}
3539
</div>

addon/components/docs-header/version-selector/index.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ModalDialog
1+
<DocsModalDialog
22
@tetherTarget="[data-version-selector]"
33
@attachment="top right"
44
@clickOutsideToClose={{true}}
@@ -69,4 +69,4 @@
6969
</li>
7070
{{/each}}
7171
</ul>
72-
</ModalDialog>
72+
</DocsModalDialog>

addon/components/docs-keyboard-shortcuts/index.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#if this.isShowingKeyboardShortcuts}}
2-
<ModalDialog
2+
<DocsModalDialog
33
@animatable={{true}}
44
@overlay={{true}}
55
@wrapperClass="docs-fullscreen-modal docs-keyboard-shortcuts-modal modal-fade"
@@ -184,5 +184,5 @@
184184
</tbody>
185185
</table>
186186
</div>
187-
</ModalDialog>
187+
</DocsModalDialog>
188188
{{/if}}

app/components/docs-modal-dialog.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from 'ember-cli-addon-docs/components/docs-modal-dialog';

app/components/modal-dialog.js

-1
This file was deleted.

0 commit comments

Comments
 (0)