From 0e9104a58fe130c1121c3ad600a75a90973cbd9a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 23 Jan 2021 13:21:40 +0800 Subject: [PATCH] Fix a typo on css --- _sass/addon/commons.scss | 2 +- assets/js/_commons/search-display.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index ca82eaa..2f836f8 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -976,7 +976,7 @@ img { display: none !important; } -.visable { +.visible { visibility: visible !important; } diff --git a/assets/js/_commons/search-display.js b/assets/js/_commons/search-display.js index 933d940..a5955dc 100644 --- a/assets/js/_commons/search-display.js +++ b/assets/js/_commons/search-display.js @@ -78,7 +78,7 @@ $(function() { hints.removeClass("unloaded"); } resultWrapper.addClass("unloaded"); - btnClear.removeClass("visable"); + btnClear.removeClass("visible"); main.removeClass("hidden"); input.val(""); @@ -130,7 +130,7 @@ $(function() { resultSwitch.on(); if (!btnClear.hasClass("visible")) { - btnClear.addClass("visable"); + btnClear.addClass("visible"); } if (isMobileView()) { @@ -149,7 +149,7 @@ $(function() { resultSwitch.off(); } input.focus(); - btnClear.removeClass("visable"); + btnClear.removeClass("visible"); }); });