@eturnity/eturnity_reusable_components 7.4.4 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -21,6 +21,9 @@
|
|
21
21
|
</template>
|
22
22
|
|
23
23
|
<script>
|
24
|
+
// Rules: (as defined in https://e-turnity.atlassian.net/browse/EPDM-9694)
|
25
|
+
// 1. On clicking the “escape” key, close the modal onCloseModal()
|
26
|
+
// 2. Always prevent outside close
|
24
27
|
// import Modal from "@eturnity/eturnity_reusable_components/src/components/modals/modal"
|
25
28
|
// This is a more flexible modal box, where the parent can decide how the body of the modal looks
|
26
29
|
// To use:
|
@@ -83,6 +86,22 @@ const ModalContainer = styled.div`
|
|
83
86
|
min-width: 100px;
|
84
87
|
min-height: 100px;
|
85
88
|
|
89
|
+
::-webkit-scrollbar {
|
90
|
+
width: 0.3em;
|
91
|
+
height: 100%;
|
92
|
+
background-color: ${(props) => props.theme.colors.grey5};
|
93
|
+
}
|
94
|
+
|
95
|
+
/* Make scrollbar visible when needed */
|
96
|
+
::-webkit-scrollbar-thumb {
|
97
|
+
background-color: ${(props) => props.theme.colors.grey3};
|
98
|
+
}
|
99
|
+
|
100
|
+
/* Make scrollbar track visible when needed */
|
101
|
+
::-webkit-scrollbar-track {
|
102
|
+
background-color: ${(props) => props.theme.colors.grey5};
|
103
|
+
}
|
104
|
+
|
86
105
|
.close {
|
87
106
|
position: absolute;
|
88
107
|
right: 20px;
|