Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Convert CSS padding and margin properties #2

@epsitec

Description

@epsitec

Both padding and margin properties can be either written using a shorthand property (padding) or longhand properties (padding-bottom, padding-left, padding-right, padding-top).

Note: using short hand properties does not produce expected results in React or Radium
when several styles get merged together while mixing longhand and shorthand properties.
Sticking to longhand properties ensures that there are no unexpected behaviors.

Add function getLonghandProperties to Electrum, taking a style object and replacing all shorthand properties with longhand properties:

  • getLonghandProperties (style)style

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions