Skip to content

Commit 8c828b0

Browse files
committed
fix typo
1 parent ad2abc3 commit 8c828b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compass-data-modeling/src/components/diagram-editor-toolbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
* @param opacity a number between 0 and 1 representing the opacity
2020
* @returns 8-digit hex color code with the last two digits representing the opacity
2121
*/
22-
function getColorWithOpactity(color: string, opacity: number) {
22+
function getColorWithOpacity(color: string, opacity: number) {
2323
if (opacity < 0 || opacity > 1) {
2424
throw new Error('Opacity must be between 0 and 1');
2525
}
@@ -39,15 +39,15 @@ const containerStyles = css({
3939
marginBottom: spacing[50],
4040
boxShadow: `0px ${spacing[50]}px ${spacing[100]}px -${
4141
spacing[25]
42-
}px ${getColorWithOpactity(palette.black, 0.15)}`,
42+
}px ${getColorWithOpacity(palette.black, 0.15)}`,
4343
});
4444

4545
const containerDarkStyles = css({
4646
backgroundColor: palette.gray.dark3,
4747
borderBottom: `1px solid ${palette.gray.dark2}`,
4848
boxShadow: `0px ${spacing[50]}px ${spacing[100]}px -${
4949
spacing[25]
50-
}px ${getColorWithOpactity(palette.white, 0.15)}`,
50+
}px ${getColorWithOpacity(palette.white, 0.15)}`,
5151
});
5252

5353
const toolbarGroupStyles = css({

0 commit comments

Comments
 (0)