aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 0759492b..895dfa2b 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -195,12 +195,18 @@ const controls = {
if (utils.is.string(iconToggled)) {
button.appendChild(
controls.createIcon.call(this, iconToggled, {
- class: `icon--${iconToggled}`,
+ class: 'icon--pressed',
})
);
+ button.appendChild(
+ controls.createIcon.call(this, iconDefault, {
+ class: 'icon--not-pressed',
+ })
+ );
+ } else {
+ button.appendChild(controls.createIcon.call(this, iconDefault));
}
- button.appendChild(controls.createIcon.call(this, iconDefault));
button.appendChild(controls.createLabel.call(this, labelKey));
utils.setAttributes(button, attributes);