Skip to content

Commit

Permalink
SWED-2469 add danish bankid mtid + doc
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed Apr 4, 2024
1 parent 51ecea2 commit 4807ea3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
11 changes: 3 additions & 8 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@

## Component changes

- Cards
- update Cards style & syntax. The update requires code changes from DG consuming devs in HTML. BUT there is silent support for "old" card syntax until next major version release. Please check the documentation for more details.
- the new UI requires the introduction of new classes (.cards-cta, span.arrow, ...). Unless one of these new classes (`.cards-cta`) is present, then the old UI will be used, by checking conditionally `cards:has(.cards-cta)`. If your project does NOT support the :has() selector yet, but requires fallback support for the old UI, then add `.legacy` class to the `.cards` element.
- deprecated cards variants (.primary, .secondary, .tertiary)
- cards title text need to have the `.h4` class
- Buttons
- add Danish MitId button style (you can use either `i.bank-id-dk` OR `i.mitid-dk`, both are supported)

## Technical changes

- Dependencies updates (finished GH actions Node -> 20 update & others misc)
- chore deps (update deps packages)

## Design System website

- update Playbook Profiles content
10 changes: 8 additions & 2 deletions src/App/ComponentsDocumentation/components/Buttons/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ export const overviewButtons = {
bankId: "no",
},
},
{
name: "Denmark",
value: {
bankId: "dk",
},
},
],
},
{
Expand Down Expand Up @@ -319,8 +325,8 @@ export const overviewButtons = {
<p>
Use BankID buttons as the main call to action on a page when the
following action is signing or verifying something with BankID.
Currently only available for Swedish and Norwegian BankID. Avoid using
multiple BankID buttons on a single page.
Currently available for Swedish and Norwegian BankID as well as for
Danish MitId. Avoid using multiple BankID buttons on a single page.
</p>
),
},
Expand Down
1 change: 1 addition & 0 deletions src/icons/bank-id/mitid_dk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions src/less/components/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,23 @@
background-image: none;
margin-left: 0.5rem;

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

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

&.bank-id-dk,
&.mitid-dk,
&.dk {
mask-image: url("../../icons/bank-id/mitid_dk.svg");
mask-repeat: no-repeat;
mask-position: center;
}
}
}

Expand Down

0 comments on commit 4807ea3

Please sign in to comment.