Fix import path (#463)

pull/479/head
Matthias Max 2021-06-09 14:36:19 +02:00 zatwierdzone przez GitHub
rodzic f7bcd89b97
commit cd23b9ebfe
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -116,7 +116,7 @@ To customize a default animation, use the `setDefaultAnimation()` method. The fu
This example will make all dialogs use a custom show animation.
```js
import { setDefaultAnimation } from '/dist/utilities/animation-registry.js';
import { setDefaultAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';
// Change the default animation for all dialogs
setDefaultAnimation('dialog.show', {
@ -135,7 +135,7 @@ If you only want to target a single component, use the `setAnimation()` method i
In this example, only the target dialog will use a custom show animation.
```js
import { setAnimation } from '/dist/utilities/animation-registry.js';
import { setAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';
// Change the animation for a single dialog
const dialog = document.querySelector('#my-dialog');