design-system icon indicating copy to clipboard operation
design-system copied to clipboard

[WNMGDS-312] Update margin and padding examples

Open line47 opened this issue 3 years ago • 1 comments

Summary

  • Add pixel values to margin and padding examples
  • Update examples design to a more conventional format like found on the colors page (example, class, value)
  • Added control to render padding and margin examples
  • Added styles for margin and padding rendering

How to test

  1. run the doc site with yarn start
  2. the visit the margin page and padding page to see updated examples with pixel values

Checklist

If this is a change to code:

  • [x] Created or updated unit tests to cover the logic added
  • [x] If necessary, updated unit-test snapshots (yarn test:unit:update) and browser-test snapshots (yarn test:browser:update)

If this is a change to documentation:

  • [x] Checked for spelling and grammatical errors

line47 avatar Sep 30 '22 14:09 line47

Hey, your new example is slick 👍

pwolfert avatar Oct 05 '22 18:10 pwolfert