ecomlab-components-next 0.1.167 → 0.1.168

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.
@@ -33,12 +33,19 @@ var ListOfContent = function ListOfContent(_ref) {
33
33
  setInit = _useState4[1];
34
34
  var handleScroll = function handleScroll() {
35
35
  var sections = document.querySelectorAll('.article__title');
36
+ var section_q = document.querySelectorAll('.questions__title-questions');
36
37
  sections.forEach(function (section) {
37
38
  var rect = section.getBoundingClientRect();
38
39
  if (rect.top < 152) {
39
40
  setActiveSection(section.id);
40
41
  }
41
42
  });
43
+ section_q.forEach(function (section) {
44
+ var rect = section.getBoundingClientRect();
45
+ if (rect.top < 152) {
46
+ setActiveSection(section.id);
47
+ }
48
+ });
42
49
  };
43
50
  var handleHashChange = function handleHashChange() {
44
51
  // const hash = window.location.hash.replace('#', ''); // Получаем часть хеша после '#'
@@ -67,7 +67,7 @@
67
67
 
68
68
 
69
69
  span {
70
- color: inherit !important;
70
+ // color: inherit !important;
71
71
  font-size: 12px !important;
72
72
  font-style: normal !important;
73
73
  font-weight: 400 !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.167",
3
+ "version": "0.1.168",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [