aboutsummaryrefslogtreecommitdiff
path: root/javascript/aspectRatioSliders.js
diff options
context:
space:
mode:
authorGerschel <9631031+Gerschel@users.noreply.github.com>2023-02-10 20:44:12 -0800
committerGitHub <noreply@github.com>2023-02-10 20:44:12 -0800
commit742d86eed4d07eef7db65b3d943f85bdbafc26e4 (patch)
tree33cf759235f317b2c86937b3d856a518a011cd53 /javascript/aspectRatioSliders.js
parent374fe636b80169c78b4b5f92013681d75fa2fad6 (diff)
parentb313221ca6d12e441f2f5041490e2fc665ff5f60 (diff)
Merge pull request #2 from w-e-w/badge_style
remove Badge background and ⚠️ ->📏
Diffstat (limited to 'javascript/aspectRatioSliders.js')
-rw-r--r--javascript/aspectRatioSliders.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/javascript/aspectRatioSliders.js b/javascript/aspectRatioSliders.js
index d9c4f675..3def5158 100644
--- a/javascript/aspectRatioSliders.js
+++ b/javascript/aspectRatioSliders.js
@@ -18,8 +18,8 @@ class AspectRatioSliderController {
}
//Adjust badge icon if rounding is on
if (this.roundingSource.getVal()) {
- this.roundingIndicatorBadge.classList.add("active");
- this.roundingIndicatorBadge.innerText = "⚠️";
+ //this.roundingIndicatorBadge.classList.add("active");
+ this.roundingIndicatorBadge.innerText = "📏";
}
//Make badge clickable to toggle setting
this.roundingIndicatorBadge.addEventListener("click", () => {
@@ -28,11 +28,11 @@ class AspectRatioSliderController {
//Make rounding setting toggle badge text and style if setting changes
this.roundingSource.child.addEventListener("change", () => {
if (this.roundingSource.getVal()) {
- this.roundingIndicatorBadge.classList.add("active");
- this.roundingIndicatorBadge.innerText = "⚠️";
+ //this.roundingIndicatorBadge.classList.add("active");
+ this.roundingIndicatorBadge.innerText = "📏";
}
else {
- this.roundingIndicatorBadge.classList.remove("active");
+ //this.roundingIndicatorBadge.classList.remove("active");
this.roundingIndicatorBadge.innerText = "📐";
}
this.adjustStepSize();