@ndla/article-scripts
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -99,2 +99,3 @@ /** | ||
parentFigure.classList.add(target.dataset.classtype); | ||
parentFigure.classList.remove('expanded'); | ||
delete target.dataset.expanded; | ||
@@ -108,2 +109,3 @@ } else if (sourceTag) { | ||
parentFigure.classList.remove(target.dataset.classtype); | ||
parentFigure.classList.add('expanded'); | ||
target.classList.add("".concat(elClass, "--expanded")); | ||
@@ -110,0 +112,0 @@ target.dataset.expanded = true; |
@@ -117,2 +117,3 @@ "use strict"; | ||
parentFigure.classList.add(target.dataset.classtype); | ||
parentFigure.classList.remove('expanded'); | ||
delete target.dataset.expanded; | ||
@@ -126,2 +127,3 @@ } else if (sourceTag) { | ||
parentFigure.classList.remove(target.dataset.classtype); | ||
parentFigure.classList.add('expanded'); | ||
target.classList.add("".concat(elClass, "--expanded")); | ||
@@ -128,0 +130,0 @@ target.dataset.expanded = true; |
{ | ||
"name": "@ndla/article-scripts", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A collection of functions for making article content responsive (and interactive)", | ||
@@ -30,3 +30,3 @@ "license": "GPL-3.0", | ||
}, | ||
"gitHead": "1682299abb08592d13280c3447db580de9b52808" | ||
"gitHead": "446ee979e3e2d3b9fb1236145817b67def9b86ef" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
104582
1635
0