@pocketprep/ui-kit 3.4.35 → 3.4.37

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.
@@ -18,6 +18,7 @@
18
18
  >{{ label }}</label>
19
19
  <div
20
20
  v-if="showIconAndTooltip"
21
+ class="uikit-textarea__tooltip-container"
21
22
  @mouseenter="showTextAreaTooltip = true"
22
23
  @mouseleave="showTextAreaTooltip = false"
23
24
  @focus="showTextAreaTooltip = true"
@@ -152,6 +153,10 @@ export default class Textarea extends Vue {
152
153
  }
153
154
  }
154
155
 
156
+ &__tooltip-container {
157
+ margin-top: -2px;
158
+ }
159
+
155
160
  &__icon {
156
161
  padding: 0 0 2px 5px;
157
162
  color: $brand-blue;
@@ -218,4 +223,4 @@ export default class Textarea extends Vue {
218
223
  }
219
224
  }
220
225
  }
221
- </style>
226
+ </style>
package/lib/utils.ts CHANGED
@@ -72,7 +72,7 @@ export const highlightKeywordsInText = (params: {
72
72
  const keywords = params.keywordDefinitions.map(k => k.keyword)
73
73
 
74
74
  return keywords.reduce((acc, word) => {
75
- const regex = new RegExp(`(${word})`, 'i')
75
+ const regex = new RegExp(`\\W(${word})\\W`, 'i')
76
76
  return acc.replace(
77
77
  regex,
78
78
  `<span class="keyword-highlight${params.isDarkMode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.35",
3
+ "version": "3.4.37",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {