Skip to content

Commit f43eba3

Browse files
committed
padding css variable added
1 parent 93c0730 commit f43eba3

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ When you pass a theme name via `TooltipModule.forRoot{}`, `ngxTooltip`, or `tool
134134
| `--tooltip-box-shadow` | Full CSS `box-shadow` property. |
135135
| `--tooltip-border-radius` | Full CSS `border-radius` property. |
136136
| `--tooltip-text-align` | Full CSS `text-align` property. |
137+
| `--tooltip-padding` | Full CSS `padding` property. |
137138

138139
_example.scss_
139140
```scss
@@ -149,6 +150,7 @@ _example.scss_
149150
--tooltip-box-shadow: 2px 2px 5px grey;
150151
--tooltip-border-radius: 5px;
151152
--tooltip-text-align: center;
153+
--tooltip-padding: 5px;
152154
}
153155
```
154156
_example.component.html_

projects/ngx-tooltip/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ When you pass a theme name via `TooltipModule.forRoot{}`, `ngxTooltip`, or `tool
134134
| `--tooltip-box-shadow` | Full CSS `box-shadow` property. |
135135
| `--tooltip-border-radius` | Full CSS `border-radius` property. |
136136
| `--tooltip-text-align` | Full CSS `text-align` property. |
137+
| `--tooltip-padding` | Full CSS `padding` property. |
137138

138139
_example.scss_
139140
```scss
@@ -149,6 +150,7 @@ _example.scss_
149150
--tooltip-box-shadow: 2px 2px 5px grey;
150151
--tooltip-border-radius: 5px;
151152
--tooltip-text-align: center;
153+
--tooltip-padding: 5px;
152154
}
153155
```
154156
_example.component.html_

projects/ngx-tooltip/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/ngx-tooltip/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@teamhive/ngx-tooltip",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"peerDependencies": {
55
"@angular/common": "^7.2.0",
66
"@angular/core": "^7.2.0",

projects/ngx-tooltip/src/lib/assets/styles/styles.css

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--tooltip-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08);
77
--tooltip-border-radius: 5px;
88
--tooltip-text-align: left;
9+
--tooltip-padding: 5px;
910
}
1011

1112
.tippy-tooltip {
@@ -15,6 +16,7 @@
1516
box-shadow: var(--tooltip-box-shadow) !important;
1617
border-radius: var(--tooltip-border-radius) !important;
1718
text-align: var(--tooltip-text-align) !important;
19+
padding: var(--tooltip-padding) !important;
1820
}
1921
.tippy-tooltip[data-animatefill] {
2022
background-color: var(--tooltip-background-color) !important;

0 commit comments

Comments
 (0)