Skip to content

Commit

Permalink
fix: give modal access to core calcite-tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonailea committed Dec 7, 2023
1 parent aa060a1 commit f704a89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/calcite-components/src/components/modal/modal.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "~@esri/calcite-design-tokens/dist/scss/core";

/**
* CSS Custom Properties
*
Expand All @@ -21,7 +23,7 @@
transition: visibility 0ms linear var(--calcite-internal-animation-timing-slow),
opacity var(--calcite-internal-animation-timing-slow) $easing-function;
// the modal should always use a dark scrim, regardless of light / dark mode - matches value in global.scss
--calcite-modal-scrim-background-internal: #{rgba($calcite-color-neutral-blk-240, 0.85)};
--calcite-modal-scrim-background-internal: #{rgba($calcite-color-neutral-blk-240, $calcite-opacity-85)};
}

.content-top[hidden],
Expand Down

0 comments on commit f704a89

Please sign in to comment.