Skip to content

Commit 869560c

Browse files
committed
fix
1 parent 2533974 commit 869560c

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ render(
3232
arrowRef,
3333
placement
3434
}) => (
35-
<span
35+
<div
3636
{...getTooltipProps({
3737
ref: tooltipRef,
3838
className: 'tooltip-container'
3939
/* your props here */
4040
})}
4141
>
42-
<span
42+
<div
4343
{...getArrowProps({
4444
ref: arrowRef,
4545
'data-placement': placement,
4646
className: 'tooltip-arrow'
4747
/* your props here */
4848
})}
4949
/>
50-
<span className="tooltip-body">Hello, World!</span>
51-
</span>
50+
Hello, World!
51+
</div>
5252
)}
5353
>
5454
{({ getTriggerProps, triggerRef }) => (
@@ -92,21 +92,21 @@ const Tooltip = ({ tooltip, children, ...props }) => (
9292
arrowRef,
9393
placement
9494
}) => (
95-
<span
95+
<div
9696
{...getTooltipProps({
9797
ref: tooltipRef,
9898
className: 'tooltip-container'
9999
})}
100100
>
101-
<span
101+
<div
102102
{...getArrowProps({
103103
ref: arrowRef,
104104
'data-placement': placement,
105105
className: 'tooltip-arrow'
106106
})}
107107
/>
108108
{tooltip}
109-
</span>
109+
</div>
110110
)}
111111
>
112112
{({ getTriggerProps, triggerRef }) => (
@@ -134,7 +134,8 @@ Then you can use it as shown in the example below.
134134
## Examples
135135
To fiddle with our example recipes, run:
136136
```
137-
npm run docz:dev
137+
> npm install
138+
> npm run docs
138139
```
139140
and open up [localhost:3000](http://localhost:3000) in your browser.
140141

doczrc.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import { css } from 'docz-plugin-css'
1+
import { css } from 'docz-plugin-css';
22

33
export default {
44
title: 'react-popper-tooltip',
55
description: 'Documentation',
6-
plugins: [
7-
css({
8-
preprocessor: 'postcss'
9-
})
10-
]
6+
plugins: [css()]
117
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"build:cjs": "babel --delete-dir-on-start src -d lib/cjs",
2121
"build:esm": "babel --delete-dir-on-start --env-name esm src -d lib/esm",
2222
"prepare": "npm run build",
23-
"docz:dev": "docz dev",
24-
"docz:build": "docz build"
23+
"docs": "docz dev",
24+
"docs:build": "docz build"
2525
},
2626
"keywords": [
2727
"react",

0 commit comments

Comments
 (0)