Fix import path (#463)

This commit is contained in:
Matthias Max
2021-06-09 14:36:19 +02:00
committed by GitHub
parent f7bcd89b97
commit cd23b9ebfe

View File

@@ -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');