newsuk/times-components

snapshots: remove inherited styles

craigbilner opened this issue · 0 comments

Do you want to request a feature or report a bug?

feature

What is the current behaviour?

there's a certain amount of inherit noise in style snapshots that probably provides little value in terms of testing and verifying changes. e.g.

  "color": "inherit",
  "font-family": "inherit",
  "font-size": "inherit",
  "font-weight": "inherit",
  "line-height": "inherit",

What is the expected behaviour?

Remove styles with a value of inherit

If this is a feature request, what is the motivation or use case for changing
the behaviour?

Smaller, cleaner snapshots that have better diffs when changes are made and encourage devs to read them