@salesforcedevs/dx-components 0.19.3-alpha.10 → 0.19.3-alpha.11

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": "@salesforcedevs/dx-components",
3
- "version": "0.19.3-alpha.10",
3
+ "version": "0.19.3-alpha.11",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -2,6 +2,10 @@ import { createSearchRegExp } from "utils/regexps";
2
2
 
3
3
  const MARK_TAGS = /<\/?mark>/gi;
4
4
 
5
+ // mark tags not being removed from ref page
6
+ // mark tags dif color on ref page
7
+ // need to reset to first match on highlight change
8
+
5
9
  export const highlightTerms = (
6
10
  // eslint-disable-next-line no-undef
7
11
  elements: NodeListOf<Element>,
@@ -30,8 +34,10 @@ export const highlightTerms = (
30
34
 
31
35
  const mark = element.querySelector("mark");
32
36
 
37
+ console.log('should i scroll?')
33
38
  if (mark && !scrolled) {
34
39
  scrolled = true;
40
+ console.log('scrolling', element)
35
41
  element.scrollIntoView({ block: "nearest" });
36
42
  }
37
43