From 81bbdd42326f2ad438f11d3fc558391d5c20050c Mon Sep 17 00:00:00 2001 From: Brian Hough Date: Sun, 10 May 2020 10:49:36 -0400 Subject: [PATCH] fix(normalize): upgrade normalize to 8.0.1 --- docs/assets/polished.js | 5 ++++- docs/docs/index.html | 2 +- package.json | 2 +- src/mixins/normalize.js | 6 +++++- src/mixins/test/__snapshots__/normalize.test.js.snap | 3 +++ 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/assets/polished.js b/docs/assets/polished.js index a8732643..8b8c906d 100644 --- a/docs/assets/polished.js +++ b/docs/assets/polished.js @@ -1467,7 +1467,7 @@ } /** - * CSS to normalize abnormalities across browsers (normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css) + * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css) * * @example * // Styles as object usage @@ -1496,6 +1496,9 @@ body: { margin: '0' }, + main: { + display: 'block' + }, h1: { fontSize: '2em', margin: '0.67em 0' diff --git a/docs/docs/index.html b/docs/docs/index.html index daa83f27..168a7276 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -2314,7 +2314,7 @@

-

CSS to normalize abnormalities across browsers (normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css)

+

CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css)

normalize(): Array<Styles>
diff --git a/package.json b/package.json index 162f2932..b8caaf2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polished", - "version": "3.6.2", + "version": "3.6.3", "description": "A lightweight toolset for writing styles in Javascript.", "license": "MIT", "author": "Brian Hough (https://polished.js.org)", diff --git a/src/mixins/normalize.js b/src/mixins/normalize.js index 44c638fb..98fd36ef 100644 --- a/src/mixins/normalize.js +++ b/src/mixins/normalize.js @@ -2,7 +2,7 @@ import type { Styles } from '../types/style' /** - * CSS to normalize abnormalities across browsers (normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css) + * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css) * * @example * // Styles as object usage @@ -32,6 +32,10 @@ export default function normalize(): Array { margin: '0', }, + main: { + display: 'block', + }, + h1: { fontSize: '2em', margin: '0.67em 0', diff --git a/src/mixins/test/__snapshots__/normalize.test.js.snap b/src/mixins/test/__snapshots__/normalize.test.js.snap index 8657b574..732836b5 100644 --- a/src/mixins/test/__snapshots__/normalize.test.js.snap +++ b/src/mixins/test/__snapshots__/normalize.test.js.snap @@ -113,6 +113,9 @@ Array [ "padding": "0", "whiteSpace": "normal", }, + "main": Object { + "display": "block", + }, "pre": Object { "fontFamily": "monospace, monospace", "fontSize": "1em",