Files
test-repo/changelog_unreleased/javascript/17398.md
T
SUZUKI Sosukeandautofix-ci[bot] d3332e06d3 Preserve spaces between CSS words and embedded expression (#17398)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-25 10:11:50 +08:00

393 B

Preserve spaces between CSS words and embedded expression (#17398 by @sosukesuzuki)

// Input
const Heading = styled.h1`
    font-size: var(--font-size-h${level});
`;

// Prettier stable
const Heading = styled.h1`
    font-size: var(--font-size-h ${level});
`;

// Prettier main
const Heading = styled.h1`
    font-size: var(--font-size-h${level});
`;