fix(core): box-shadow 'none' handling (#10405)

This commit is contained in:
Nathan Walker
2023-10-14 14:22:15 -07:00
committed by GitHub
parent 212d086676
commit c23695c477
6 changed files with 80 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
import { CoreTypes } from '../../core-types';
import { Color } from '../../color';
import { parseCSSShorthand } from './css-shadow';
import { parseCSSShorthand } from './css-utils';
export interface StrokeCSSValues {
width: CoreTypes.LengthType;
@@ -18,6 +18,6 @@ export function parseCSSStroke(value: string): StrokeCSSValues {
return {
width,
color: new Color(data.color),
color: data.color ? new Color(data.color) : undefined,
};
}