Skip to content

Commit cf15784

Browse files
committed
fix: removed deprecated tokens from underlay/overlay
1 parent d97b026 commit cf15784

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

components/overlay/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
1111
*/
1212

1313
:root {
14-
--spectrum-overlay-animation-distance: var(--spectrum-dropdown-flyout-menu-offset-y);
14+
--spectrum-overlay-animation-distance: var(--spectrum-picker-flyout-menu-offset-y);
1515
}
1616

1717
%spectrum-overlay {

components/underlay/index.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ governing permissions and limitations under the License.
1515

1616
:root {
1717
/* Bug: this must be 0ms, not 0 */
18-
--spectrum-dialog-background-entry-animation-delay: 0ms;
19-
--spectrum-dialog-background-exit-animation-ease: cubic-bezier(0.5, 0, 1, 1); /* wrong in DNA */
20-
--spectrum-dialog-background-entry-animation-ease: cubic-bezier(0, 0, 0.40, 1); /* wrong in DNA */
18+
--spectrum-dialog-confirm-background-entry-animation-delay: 0ms;
19+
--spectrum-dialog-confirm-background-exit-animation-ease: cubic-bezier(0.5, 0, 1, 1); /* wrong in DNA */
20+
--spectrum-dialog-confirm-background-entry-animation-ease: cubic-bezier(0, 0, 0.40, 1); /* wrong in DNA */
2121
}
2222

2323
.spectrum-Underlay {
@@ -35,13 +35,13 @@ governing permissions and limitations under the License.
3535
overflow: hidden;
3636

3737
/* Exit animations */
38-
transition: opacity var(--spectrum-dialog-background-exit-animation-duration) var(--spectrum-dialog-background-exit-animation-ease) var(--spectrum-dialog-background-exit-animation-delay),
39-
visibility 0ms linear calc(var(--spectrum-dialog-background-exit-animation-delay) + var(--spectrum-dialog-background-exit-animation-duration));
38+
transition: opacity var(--spectrum-dialog-confirm-background-exit-animation-duration) var(--spectrum-dialog-confirm-background-exit-animation-ease) var(--spectrum-dialog-confirm-background-exit-animation-delay),
39+
visibility 0ms linear calc(var(--spectrum-dialog-confirm-background-exit-animation-delay) + var(--spectrum-dialog-confirm-background-exit-animation-duration));
4040
}
4141

4242
.spectrum-Underlay.is-open {
4343
@inherit: %spectrum-overlay--open;
4444

4545
/* Entry animations */
46-
transition: opacity var(--spectrum-dialog-background-entry-animation-duration) var(--spectrum-dialog-background-entry-animation-ease) var(--spectrum-dialog-background-entry-animation-delay);
46+
transition: opacity var(--spectrum-dialog-confirm-background-entry-animation-duration) var(--spectrum-dialog-confirm-background-entry-animation-ease) var(--spectrum-dialog-confirm-background-entry-animation-delay);
4747
}

components/underlay/skin.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ governing permissions and limitations under the License.
1111
*/
1212

1313
.spectrum-Underlay {
14-
background: var(--spectrum-dialog-underlay-background-color);
14+
background: var(--spectrum-dialog-confirm-overlay-background-color);
1515
}

0 commit comments

Comments
 (0)