Skip to content

Error when parsing padding or margin with half value #17

@MatthieuLemoine

Description

@MatthieuLemoine

When I use the shorthand key paddingor margin, the following error is thrown if one of the values contains a dot.

No possible parsings (@5: '.').

Component :

const Banner = styled.View`
  padding : 21 23.5 18.5 23.5;
`;

But the following works great :

const Banner = styled.View`
  padding-top : 21;
  padding-right : 23.5;
  padding-bottom : 18.5;
  padding-left : 23.5;
`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions