diff --git a/package-lock.json b/package-lock.json index 2325cb74c4..bad6edbb08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6638,9 +6638,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001680", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", - "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", + "version": "1.0.30001687", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001687.tgz", + "integrity": "sha512-0S/FDhf4ZiqrTUiQ39dKeUjYRjkv7lOZU1Dgif2rIqrTzX/1wV2hfKu9TOm1IHkdSijfLswxTFzl/cvir+SLSQ==", "dev": true, "funding": [ { @@ -6655,7 +6655,8 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { "version": "4.1.2", @@ -23768,9 +23769,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001680", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", - "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", + "version": "1.0.30001687", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001687.tgz", + "integrity": "sha512-0S/FDhf4ZiqrTUiQ39dKeUjYRjkv7lOZU1Dgif2rIqrTzX/1wV2hfKu9TOm1IHkdSijfLswxTFzl/cvir+SLSQ==", "dev": true }, "chalk": { diff --git a/package.json b/package.json index c878990409..b784018b1d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,9 @@ "homepage": "https://github.com/swedbankpay/design.swedbankpay.com#readme", "browserslist": [ "last 3 versions", - "> 1%", + "last 2 major versions", + "> 0.5%", + "Firefox ESR", "not dead" ], "dependencies": { diff --git a/postcss.config.js b/postcss.config.js index aca4c104b1..5ee7ebb6d0 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,3 +1,11 @@ +const postcssPresetEnv = require("postcss-preset-env"); + module.exports = { - plugins: [["postcss-preset-env"]], + plugins: [ + postcssPresetEnv({ + stage: 2, + minimumVendorImplementations: 2, + preserve: true, + }), + ], }; diff --git a/src/App/GetStarted/get-started/ForDevelopers/index.js b/src/App/GetStarted/get-started/ForDevelopers/index.js index 573543ad24..7f1095b592 100644 --- a/src/App/GetStarted/get-started/ForDevelopers/index.js +++ b/src/App/GetStarted/get-started/ForDevelopers/index.js @@ -350,7 +350,8 @@ const BrowserSupport = () => (

- Target Browser: "Last 3 versions, > 1%, not dead" + Target Browser: "Last 3 versions, Last 2 major versions, + > 0.5%, not dead"

Browser support for products using the Design Guide

@@ -360,6 +361,9 @@ const BrowserSupport = () => ( browsers than the ones supported by the Design Guide you need to maintain and test the component code in in your project.{" "}

+

+ We of course encourage to use PostCSS to do that in your build pipeline. +

); const GridAndBreakpoints = () => (