Skip to content

Commit

Permalink
feat(Drawer): add veil z-index to CSS API
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunory committed Aug 21, 2024
1 parent 70a6c58 commit 91a4475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Drawer/Drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ $block: '.#{variables.$ns}drawer';
pointer-events: initial;
inset: 0;
background-color: var(--gn-drawer-veil-background-color, var(--_--veil-background-color));
z-index: var(--gn-drawer-veil-z-index);

&_hidden {
display: none;
Expand Down
1 change: 1 addition & 0 deletions src/components/Drawer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ The Drawer module consists of two primary components: `Drawer` and `DrawerItem`.
| `--gn-drawer-item-resizer-handle-color` | The color of the resizer handle | `--g-color-line-generic` |
| `--gn-drawer-item-resizer-handle-color-hover` | The color of the resizer handle when the resizer is hovered | `--g-color-line-generic-hover` |
| `--gn-drawer-item-resizer-z-index` | z-index of the resizer element | 100 |
| `--gn-drawer-veil-z-index` | z-index of the veil | `"auto"` |

0 comments on commit 91a4475

Please sign in to comment.