diff --git a/src/global_styling/mixins/_shadow.scss b/src/global_styling/mixins/_shadow.scss index a781f30ce..4d07efcca 100644 --- a/src/global_styling/mixins/_shadow.scss +++ b/src/global_styling/mixins/_shadow.scss @@ -120,8 +120,10 @@ @if ($direction == 'y') { mask-image: linear-gradient(to bottom, #{$gradient}); + contain: paint; } @else if ($direction == 'x') { mask-image: linear-gradient(to right, #{$gradient}); + contain: paint; } @else { @warn "ouiOverflowShadow() expects direction to be 'y' or 'x' but got '#{$direction}'"; } diff --git a/src/themes/oui-next/global_styling/mixins/_shadow.scss b/src/themes/oui-next/global_styling/mixins/_shadow.scss index 3fc60fa09..6e6ea3633 100644 --- a/src/themes/oui-next/global_styling/mixins/_shadow.scss +++ b/src/themes/oui-next/global_styling/mixins/_shadow.scss @@ -120,8 +120,10 @@ @if ($direction == 'y') { mask-image: linear-gradient(to bottom, #{$gradient}); + contain: paint; } @else if ($direction == 'x') { mask-image: linear-gradient(to right, #{$gradient}); + contain: paint; } @else { @warn "ouiOverflowShadow() expects direction to be 'y' or 'x' but got '#{$direction}'"; } diff --git a/src/themes/v9/global_styling/mixins/_shadow.scss b/src/themes/v9/global_styling/mixins/_shadow.scss index 3fc60fa09..6e6ea3633 100644 --- a/src/themes/v9/global_styling/mixins/_shadow.scss +++ b/src/themes/v9/global_styling/mixins/_shadow.scss @@ -120,8 +120,10 @@ @if ($direction == 'y') { mask-image: linear-gradient(to bottom, #{$gradient}); + contain: paint; } @else if ($direction == 'x') { mask-image: linear-gradient(to right, #{$gradient}); + contain: paint; } @else { @warn "ouiOverflowShadow() expects direction to be 'y' or 'x' but got '#{$direction}'"; }