diff --git a/README.md b/README.md index 873d767..8a83676 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ npm i svelte-tooltip-action | text | string | empty string | Tooltip's text | | style | string | empty string | Your custom CSS | +You can use `style` parameter to customize position of your tooltip instance with CSS `left: ...`, `top: ...`, `right: ...`, `bottom: ...`. Sometimes it's useful to combine several rules together. For example, if you want horizontally center tooltip use: `left: 50%; width: $tooltip-width; margin-left: $tooltip-width / 2`. + ## Why my overlap not working? - Check CSS `position: relative` on your `
` (on `` with `use:tooltip`) diff --git a/package.json b/package.json index 32c99fd..cefa2ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte-tooltip-action", - "version": "1.0.1", + "version": "1.0.2", "description": "Nice tooltip in the form of Svelte 3 action", "main": "dist/index.js", "module": "dist/index.mjs",