Skip to content

Commit d64ba14

Browse files
committed
- Export css variable of content zIndex #21
- includes #20 in version release
1 parent b30b522 commit d64ba14

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
4+
## 1.2.0 (2022-04-21)
5+
6+
- Clean up hotkeys on disconnect #20. Thanks to @excid3
7+
8+
- Export css variable of content `zIndex` #21
9+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ If you need more style control, use any of the CSS variables below.
249249
| --ninja-group-text-color | rgb(144, 149, 157); |
250250
| --ninja-footer-background | rgba(242, 242, 242, 0.4); |
251251
| --ninja-placeholder-color | #8e8e8e |
252-
252+
| --ninja-z-index | 1 |
253253

254254
#### Example
255255
```css

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ninja-keys",
3-
"version": "1.1.12",
3+
"version": "1.2.0",
44
"description": "Ninja Keys",
55
"main": "dist/ninja-keys.js",
66
"module": "dist/ninja-keys.js",

src/base-styles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const baseStyles = css`
3131
--ninja-placeholder-color: #8e8e8e;
3232
3333
font-size: var(--ninja-font-size);
34+
35+
--ninja-z-index: 1;
3436
}
3537
3638
:host(.dark) {
@@ -59,7 +61,7 @@ export const baseStyles = css`
5961
.modal {
6062
display: none;
6163
position: fixed;
62-
z-index: 1;
64+
z-index: var(--ninja-z-index);
6365
left: 0;
6466
top: 0;
6567
width: 100%;

0 commit comments

Comments
 (0)