Skip to content

Commit

Permalink
Merge pull request #402 from TykTechnologies/modal-blur-bg
Browse files Browse the repository at this point in the history
adds a blur filter to the background of modals
  • Loading branch information
ifrim authored Feb 11, 2025
2 parents ee81fd4 + f699e86 commit 040a5e5
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tyk-technologies/tyk-ui",
"version": "4.4.15",
"version": "4.4.16",
"description": "Tyk UI - ui reusable components",
"main": "src/index.js",
"scripts": {
Expand Down
7 changes: 3 additions & 4 deletions src/components/Modal/Modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
}

.tyk-modal__backdrop {
background-color: var(--color-secondary-extra-dark1);
background-color: color-mix(in srgb, var(--color-secondary-extra-dark1) 20%, transparent);
border: none;
display: none;
position: fixed;
Expand All @@ -174,12 +174,11 @@

&.opened {
display: block;
opacity: 0.5;
transition: opacity .2s ease;
}

&.fade-enter-done {
opacity: 0.5;
z-index: 9;
backdrop-filter: blur(3px);
transition: backdrop-filter .2s ease;
}
}

0 comments on commit 040a5e5

Please sign in to comment.