Skip to content

Commit

Permalink
Merge branch 'develop' into feature/SWED-2249-create_playbook_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti authored Oct 31, 2023
2 parents 2afb792 + 7384728 commit 4611d09
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 66 deletions.
9 changes: 2 additions & 7 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# Changelog

## [10.8.5] - 25.08.2023
## \[10.8.6\] - 13.09.2023

## Bug Fixes

## Component changes

### Non breaking UI changes

- add possibility to disable rotation of the dropdown toggle icon on active state

## Testing

- E2E tests for dropdown component

## Design System website

- Add the Playbook section
- expand components preview containers to full screen
- Add the Playbook section in Identity
84 changes: 53 additions & 31 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swedbankpay/design-guide",
"version": "10.8.5",
"version": "10.8.6",
"description": "Swedbank Pay Design Guide",
"main": "src/scripts/main/index.js",
"scripts": {
Expand Down Expand Up @@ -61,7 +61,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "7.20.2",
"@babel/preset-react": "^7.18.6",
"@playwright/test": "^1.34.3",
"@playwright/test": "^1.39.0",
"@sentry/webpack-plugin": "^1.20.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`ComponentsDocumentation: index renders 1`] = `
className="dg-current-version text-uppercase"
>
Design Guide – v.
10.8.5
10.8.6
</span>
</div>
`;
18 changes: 18 additions & 0 deletions src/App/ComponentsDocumentation/components/Buttons/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,24 @@ export const overviewButtons = {
},
],
},
{
id: "button-type",
title: "Button type",
values: [
{
name: "Primary",
value: {
type: "primary",
},
},
{
name: "Secondary",
value: {
type: "secondary",
},
},
],
},
],
},
title: "BankID button",
Expand Down
31 changes: 31 additions & 0 deletions src/App/Home/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,37 @@ import CodeTags from "@components/CodeTags";
const basename = process.env.basename;

export const changeLogs = [
{
version: "10.8.6",
title: "The one with little handy UI helpers",
text: (
<>
<p>We&apos;re back in action, armed with nifty UI helpers 🧰🚀🎁.</p>
<p>
Ever find yourself awake at night, sweating, pondering how life would
be better if there were a way to disable the icon rotation in the
dropdown toggle button when you open it? I know, right?
</p>
<p>
And what if I told you you could now style those bank-ID buttons as
secondary buttons? Isn&apos;t that something you&apos;ve been
daydreaming about for years?
</p>
<p>
But wait, there&apos;s more! How about a magical button that
transforms your component&apos;s preview container into a full-screen
extravaganza, delivering the ultimate home-cinema experience for your
components? It&apos;s like fulfilling a lifelong dream you didn&apos;t
even know you had since you were a little kid! 👶🎁
<br />
<span className="font-italic">
(for now only enabled for the Topbar component, but if YOU public
like it then we&apos;ll expand it to the rest 🎤)
</span>
</p>
</>
),
},
{
version: "10.8.5",
title: "The CSS url / Import Patch 🐛🔨",
Expand Down
2 changes: 1 addition & 1 deletion src/App/Identity/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`Core: index renders 1`] = `
className="dg-current-version text-uppercase"
>
Design Guide – v.
10.8.5
10.8.6
</span>
</div>
`;
2 changes: 1 addition & 1 deletion src/App/Patterns/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`Patterns: index renders 1`] = `
className="dg-current-version text-uppercase"
>
Design Guide – v.
10.8.5
10.8.6
</span>
</div>
`;
2 changes: 1 addition & 1 deletion src/App/Utilities/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`Utilities: index renders 1`] = `
className="dg-current-version text-uppercase"
>
Design Guide - v.
10.8.5
10.8.6
</span>
<div
className="d-flex align-items-center"
Expand Down
51 changes: 29 additions & 22 deletions src/less/components/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,8 @@
background-color: var(--btn-primary-color);
}

&.btn-bank-id {
display: flex;
justify-content: center;

i.bank-id {
height: 1.5rem;
width: 1.5rem;
display: inline-flex;
background-image: none;
margin-left: 0.5rem;
background-color: var(--btn-primary-text-color);

&-no,
&.no {
mask-image: url("../../icons/bank-id/bankid_no.svg");
}

&-se,
&.se {
mask-image: url("../../icons/bank-id/bankid_se.svg");
}
}
&.btn-bank-id i.bank-id {
background-color: var(--btn-primary-text-color);
}
}

Expand All @@ -125,6 +105,33 @@
box-shadow: inset 0 0 0 3px var(--btn-active-color);
border-color: var(--btn-active-color);
}

&.btn-bank-id i.bank-id {
background-color: var(--btn-secondary-text-color);
}
}

&:is(.btn-primary, .btn-secondary).btn-bank-id {
display: flex;
justify-content: center;

i.bank-id {
height: 1.5rem;
width: 1.5rem;
display: inline-flex;
background-image: none;
margin-left: 0.5rem;

&-no,
&.no {
mask-image: url("../../icons/bank-id/bankid_no.svg");
}

&-se,
&.se {
mask-image: url("../../icons/bank-id/bankid_se.svg");
}
}
}

&.btn-tertiary {
Expand Down

0 comments on commit 4611d09

Please sign in to comment.