Skip to content

Commit

Permalink
Feat: allow custom z-index via --cc-z-index (ref. #501)
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Apr 20, 2023
1 parent a1cd6f9 commit 91e1877
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/cookieconsent.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cookieconsent.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cookieconsent.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css-components/base.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/core/modals/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const createMainContainer = (api) => {
dom._ccMain.id = 'cc-main';

dom._ccMain.style.position = 'fixed';
dom._ccMain.style.zIndex = '2147483647';

handleRtlLanguage();

Expand Down
2 changes: 2 additions & 0 deletions src/scss/core/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--cc-btn-gap: 5px;
--cc-link-color: var(--cc-btn-primary-bg);
--cc-modal-margin: 1em;
--cc-z-index: 2147483647;
}

#cc-main {
Expand All @@ -27,6 +28,7 @@
position: relative;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
z-index: var(--cc-z-index);

&.cc--rtl{
direction: rtl;
Expand Down

0 comments on commit 91e1877

Please sign in to comment.