@eturnity/eturnity_reusable_components 7.4.1 → 7.4.3-EPDM-9677.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.4.1",
3
+ "version": "7.4.3-EPDM-9677.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -23,7 +23,7 @@
23
23
  v-if="infoTextMessage"
24
24
  :text="infoTextMessage"
25
25
  borderColor="#ccc"
26
- :size="fontSize ? fontSize : '16px'"
26
+ :size="infoTextSize"
27
27
  :alignText="infoTextAlign"
28
28
  />
29
29
  </label-wrapper>
@@ -394,6 +394,10 @@ export default {
394
394
  required: false,
395
395
  default: true
396
396
  },
397
+ infoTextSize: {
398
+ required: false,
399
+ default: '14px'
400
+ },
397
401
  dataId: {
398
402
  type: String,
399
403
  default: ''
@@ -547,7 +551,15 @@ export default {
547
551
  computed: {
548
552
  optionLength() {
549
553
  if (this.isDropdownOpen) {
550
- return this.$refs.dropdown.$children.length
554
+ // this filterRef is needed to check for the # of children on Filter dropdowns
555
+ const filterRef =
556
+ this.$refs.dropdown.$children &&
557
+ this.$refs.dropdown.$children.length > 1
558
+ ? this.$refs.dropdown.$children
559
+ : this.$refs.dropdown.$children[0].$children
560
+ ? this.$refs.dropdown.$children[0].$children
561
+ : this.$refs.dropdown.$children
562
+ return filterRef.length
551
563
  } else {
552
564
  return 0
553
565
  }
@@ -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;