Skip to content

Commit 18ad947

Browse files
fix #1 updated light theme not working css, and added demo gif of tooltip in readme and demo codesanbox link
1 parent 3298878 commit 18ad947

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.npmignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
./styles.css
2-
./dist/index.min.js
3-
/.github
1+
/styles.css
2+
/dist/index.min.js
3+
/github
4+
/static

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ A very lightweight tooltip utitlity library, made using only `CSS` with dynamic
1010
![Css language share](https://img.shields.io/github/languages/top/thoughtlessmind/css-only-tooltip)
1111

1212

13+
![Alt Text](./static/tooltipDemo.gif)
14+
1315
## Insatallation
1416
- Using npm
1517
`$ npm install css-only-tooltip`
@@ -28,6 +30,7 @@ A very lightweight tooltip utitlity library, made using only `CSS` with dynamic
2830
<link rel="stylesheet" href="https://unpkg.com/css-only-tooltip@latest/dist/styles.min.css">
2931
```
3032

33+
3134
## Quick start
3235
`css-only-tooltip` uses only `data` html attribute for working. So, the only step is to import the `CSS` in your file and use it.
3336

@@ -96,3 +99,5 @@ Thre are some optional customization options are available.
9699
Dakr tooltip on right side
97100
</span>
98101
```
102+
_Play with it live:-_
103+
[![Edit css-only-tooltip-Demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vigilant-nobel-d5qrn?fontsize=14&hidenavigation=1&theme=dark)

static/tooltipDemo.gif

112 KB
Loading

styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959

6060
/* ----- Light -----*/
61-
[data-css-only-tooltip-props~="dark"]::after {
61+
[data-css-only-tooltip-props~="light"]::after {
6262
background-color: #fff;
6363
color: #222;
6464
}

0 commit comments

Comments
 (0)