Skip to content

Dynamic expressions that return different values are hashed the same way #79

@danieldelcore

Description

@danieldelcore
function getGap({ space }: Theme) {
        const column = columnGap ? space[columnGap] : space[gap];
        const row = rowGap ? space[rowGap] : space[gap];

        return `${row} ${column}`;
    }

    return (
        <div
            css={css<Theme>`
                display: grid;
                grid-template-columns: repeat(${columns}, 1fr);
                gap: ${getGap};
                width: 100%;
            `}
        >
            {children}
        </div>
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions