Skip to content

Commit

Permalink
SWED-2543 increase browsers support
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed Dec 10, 2024
1 parent 17305ee commit 2d0f426
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 9 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const postcssPresetEnv = require("postcss-preset-env");

module.exports = {
plugins: [["postcss-preset-env"]],
plugins: [
postcssPresetEnv({
stage: 2,
minimumVendorImplementations: 2,
preserve: true,
}),
],
};
6 changes: 5 additions & 1 deletion src/App/GetStarted/get-started/ForDevelopers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ const BrowserSupport = () => (
<div className="alert alert-informative mt-4">
<i className="at-info-circle" aria-hidden="true"></i>
<p>
<b>Target Browser:</b> &quot;Last 3 versions, &gt; 1%, not dead&quot;
<b>Target Browser:</b> &quot;Last 3 versions, Last 2 major versions,
&gt; 0.5%, not dead&quot;
</p>
</div>
<h4>Browser support for products using the Design Guide</h4>
Expand All @@ -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.{" "}
</p>
<p>
We of course encourage to use PostCSS to do that in your build pipeline.
</p>
</section>
);
const GridAndBreakpoints = () => (
Expand Down

0 comments on commit 2d0f426

Please sign in to comment.