Skip to content

Commit 3521358

Browse files
committed
feat: use o-visual-effects mixin to create standard box-shadow
1 parent fbbfa76 commit 3521358

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dotcom-ui-header/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@financial-times/logo-images": "^1.10.1",
3333
"@financial-times/o-header": "^15.5.0",
3434
"@financial-times/o3-button": "^3.15.0",
35+
"@financial-times/o-visual-effects": "^5.0.2",
3536
"n-topic-search": "^10.1.1",
3637
"preact": "^10.23.2",
3738
"react": "17.x || 18.x",

packages/dotcom-ui-header/src/components/sub-navigation/subNavDropdown.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import '@financial-times/o3-foundation/css/professional.css';
2+
@import '@financial-times/o-visual-effects/main';
23

34
@keyframes o-header-subnav-animation {
45
0% {
@@ -31,7 +32,7 @@
3132
height: auto;
3233
transform: none;
3334
overflow-y: auto;
34-
box-shadow: 2px 2px var(--o3-spacing-4xs) 0 rgba(15, 10, 46, 0.09);
35+
@include oVisualEffectsShadowContent('mid');
3536
animation: o-header-subnav-animation 0.5s ease-out;
3637
}
3738

0 commit comments

Comments
 (0)