From: soufiane Date: Wed, 8 Nov 2023 12:59:33 +0000 (+0100) Subject: wait #6460 @0:30 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=541165fa130a13e64e4e4f898619b9f6b9021163;p=fluidbook-toolbox-quiz.git wait #6460 @0:30 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 37b0c5e..3dd5af8 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -22,7 +22,18 @@ QuizAccessibility.prototype = { }); } }); + + $('span.access').each(function() { + $this.hideButton($(this)) + }) }, + + hideButton: function($el) { + let status = this.quiz.data.accessibility_show_hotkeys + if(status) { + $el.hide() + } + } } export default QuizAccessibility; diff --git a/style/100-global.sass b/style/100-global.sass index db2e7b9..c27793f 100644 --- a/style/100-global.sass +++ b/style/100-global.sass @@ -82,11 +82,16 @@ body &.secondary +opacity(.16) padding-left: 22px + padding-right: 6px &.reset //max-width: 144px .text svg width: 50% + .text + margin-right: 16px + .access + margin: 0 10px 0 0 &.info max-width: 177px @@ -183,9 +188,10 @@ body width: 56px flex-shrink: 0 padding: 0 - .text +flex-config(center, false, false, center) + margin-right: 0 + .access:not(.missed):not(.ok):not(.nok) display: none diff --git a/style/103-question-multiple.sass b/style/103-question-multiple.sass index 5a95e1f..f96a85a 100644 --- a/style/103-question-multiple.sass +++ b/style/103-question-multiple.sass @@ -13,6 +13,7 @@ &-item opacity: 0 + display: flex label width: 100% height: auto @@ -24,6 +25,7 @@ position: relative overflow: hidden display: flex + min-height: 54px &:after content: "" width: 100%