Refactor styles to match new CSS nesting behavior
This commit refactors SCSS to resolve deprecation warnings related to mixed declaration after nested rules. Sass is changing how it processes declarations that appear after nested rules to align with CSS standards. Previously, Sass would hoist declarations to avoid duplicating selectors, However, this behavior will soon change to make declarations apply in the order they appear, as per CSS standards.
This commit is contained in:
@@ -220,9 +220,6 @@ $color-tooltip-background: $color-primary-darkest;
|
||||
}
|
||||
|
||||
.tooltip__overlay {
|
||||
@include set-visibility(false);
|
||||
@include fixed-fullscreen;
|
||||
|
||||
/*
|
||||
The z-index is set for both visible and invisible states to ensure it maintains its stacking order
|
||||
above other elements during transitions. This approach prevents the tooltip from falling behind other
|
||||
@@ -235,6 +232,9 @@ $color-tooltip-background: $color-primary-darkest;
|
||||
This prevents unintentional layout issues or overflow.
|
||||
*/
|
||||
white-space: normal;
|
||||
|
||||
@include set-visibility(false);
|
||||
@include fixed-fullscreen;
|
||||
}
|
||||
|
||||
.tooltip__trigger {
|
||||
|
||||
Reference in New Issue
Block a user