Skip to content

Commit 59eb299

Browse files
author
Sine Jespersen
committed
added styling and example in modalloan
1 parent 6ecdb0b commit 59eb299

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/stories/Library/Modals/modal-loan/ModalLoan.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ export const ModalLoan: React.FC<ModalLoanProps> = ({
171171
shoulShowModal ? "modal-show" : ""
172172
}`}
173173
>
174+
<div className="modal-screen-reader-description">
175+
Denne modal dækker sidens indhold, og er en demo
176+
</div>
174177
<ModalCloseButton toggleModal={toggleModal} />
175178
<div className="modal-loan__container">
176179
<div className="modal-loan__header">

src/styles/scss/shared.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666

6767
.modal-show {
6868
display: flex;
69+
position: absolute;
70+
left: 0;
71+
right: 0;
6972
opacity: 1;
7073
}
7174

0 commit comments

Comments
 (0)