Skip to content

Commit 82b1840

Browse files
Flyout: Add interpolation to Sass size variable (HDS-3206) (#1994)
Co-authored-by: Alex <[email protected]>
1 parent 14256d5 commit 82b1840

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/khaki-trees-sit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
---
4+
5+
`Flyout` - Fixed issue with Sass operators failing in old versions of Sass

packages/components/src/styles/components/flyout.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
$hds-flyout-max-width: calc(100vw - var(--hds-app-sidenav-width-minimized) / 2 );
1111

1212
@mixin hds-flyout-position($size) {
13-
width: min($size, #{$hds-flyout-max-width});
13+
width: min(#{$size}, #{$hds-flyout-max-width});
1414
max-width: $hds-flyout-max-width;
1515

1616
&[open] {
17-
margin-left: calc(100% - min($size, #{$hds-flyout-max-width}));
17+
margin-left: calc(100% - min(#{$size}, #{$hds-flyout-max-width}));
1818
}
1919
}
2020

0 commit comments

Comments
 (0)