Skip to content

Possible API Addition: allow fractional arguments to work with number types #28

Description

@wldcordeiro

Currently the fractional arguments to column, row, waffle, etc all require a string that's formatted as a fraction (e.g. "1/4"), this is great for CSS, but in JS we could be more robust by allowing a number (or any code that evaluates to a number value) between 0 and 1 and give users more precise control of their grid.

Where this gets complicated though is getting the cycle values right. Rounding is difficult at times and would need some work. One idea is to make the cycle argument required when using a number.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions