Skip to content

Commit

Permalink
Merge pull request #304 from oat-sa/fix/TR-3799/pop-up-window-wrong-c…
Browse files Browse the repository at this point in the history
…olor-blue-audio-pci

fix: correct bg color of pci pop up
  • Loading branch information
Silvia-loza authored Apr 29, 2022
2 parents 52db1b5 + f640eed commit fa35bd1
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 72 deletions.
42 changes: 42 additions & 0 deletions migrations/Version202204270746371465_qtiItemPci.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

declare(strict_types=1);

namespace oat\qtiItemPci\migrations;

use Doctrine\DBAL\Schema\Schema;
use oat\tao\scripts\tools\migrations\AbstractMigration;
use Doctrine\Migrations\Exception\IrreversibleMigration;
use oat\qtiItemPci\scripts\install\RegisterPciAudioRecording;
use oat\qtiItemPci\model\PciModel;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version202204270746371465_qtiItemPci extends AbstractMigration
{

public function getDescription(): string
{
return 'Update Audio Recording interaction with Css fix';
}

public function up(Schema $schema): void
{
$registry = (new PciModel())->getRegistry();
$this->addReport(
$this->propagate(
new RegisterPciAudioRecording()
)(
['0.14.4']
)
);
}

public function down(Schema $schema): void
{
throw new IrreversibleMigration(
'In order to undo this migration, please revert the client-side changes and run ' . RegisterPciAudioRecording::class
);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"label": "Audio recording",
"short": "Audio",
"description": "Allow test taker to record audio",
"version": "0.14.3",
"version": "0.14.4",
"author": "Christophe Noël",
"email": "christophe@taotesting.com",
"tags": ["audio"],
Expand Down
77 changes: 39 additions & 38 deletions views/js/pciCreator/dev/audioRecordingInteraction/pciCreator.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14303,23 +14303,23 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression;


buffer += "<div\n class=\"modal ";
buffer += "<div\r\n class=\"modal ";
if (helper = helpers['class']) { stack1 = helper.call(depth0, {hash:{},data:data}); }
else { helper = (depth0 && depth0['class']); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
buffer += escapeExpression(stack1)
+ "\"\n role=\"dialog\"\n aria-modal=\"true\"\n data-control=\"navigable-modal-body\"\n aria-describedby=\"core/ui-dialog-message-";
+ "\"\r\n role=\"dialog\"\r\n aria-modal=\"true\"\r\n data-control=\"navigable-modal-body\"\r\n aria-describedby=\"core/ui-dialog-message-";
if (helper = helpers.dialogId) { stack1 = helper.call(depth0, {hash:{},data:data}); }
else { helper = (depth0 && depth0.dialogId); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
buffer += escapeExpression(stack1)
+ "\"\n>\n <div class=\"modal-body clearfix\">\n <p id=\"core/ui-dialog-message-";
+ "\"\r\n>\r\n <div class=\"modal-body clearfix\">\r\n <p id=\"core/ui-dialog-message-";
if (helper = helpers.dialogId) { stack1 = helper.call(depth0, {hash:{},data:data}); }
else { helper = (depth0 && depth0.dialogId); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
buffer += escapeExpression(stack1)
+ "\" class=\"message\">";
if (helper = helpers.message) { stack1 = helper.call(depth0, {hash:{},data:data}); }
else { helper = (depth0 && depth0.message); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "</p>\n </div>\n</div>";
buffer += "</p>\r\n </div>\r\n</div>";
return buffer;
});
});
Expand Down Expand Up @@ -14732,7 +14732,7 @@ define('audioRecordingInteraction/runtime/js/player',[
message: message,
autoRender: true,
autoDestroy: true,
class: 'icon-info'
class: 'icon-info audio'
});
return dialog;
}
Expand Down Expand Up @@ -16264,7 +16264,7 @@ define('audioRecordingInteraction/runtime/js/uiElements',[
});


define('text!audioRecordingInteraction/runtime/img/mic.svg',[],function () { return '<svg xmlns:svg="http://www.w3.org/2000/svg"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 16 16">\n <path d="M7.5 11c1.381 0 2.5-1.119 2.5-2.5v-6c0-1.381-1.119-2.5-2.5-2.5s-2.5 1.119-2.5 2.5v6c0 1.381 1.119 2.5 2.5 2.5zM11 7v1.5c0 1.933-1.567 3.5-3.5 3.5s-3.5-1.567-3.5-3.5v-1.5h-1v1.5c0 2.316 1.75 4.223 4 4.472v2.028h-2v1h5v-1h-2v-2.028c2.25-0.249 4-2.156 4-4.472v-1.5h-1z"/>\n</svg>\n';});
define('text!audioRecordingInteraction/runtime/img/mic.svg',[],function () { return '<svg xmlns:svg="http://www.w3.org/2000/svg"\r\n xmlns="http://www.w3.org/2000/svg"\r\n viewBox="0 0 16 16">\r\n <path d="M7.5 11c1.381 0 2.5-1.119 2.5-2.5v-6c0-1.381-1.119-2.5-2.5-2.5s-2.5 1.119-2.5 2.5v6c0 1.381 1.119 2.5 2.5 2.5zM11 7v1.5c0 1.933-1.567 3.5-3.5 3.5s-3.5-1.567-3.5-3.5v-1.5h-1v1.5c0 2.316 1.75 4.223 4 4.472v2.028h-2v1h5v-1h-2v-2.028c2.25-0.249 4-2.156 4-4.472v-1.5h-1z"/>\r\n</svg>\r\n';});

/**
* This program is free software; you can redistribute it and/or
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ define([
message: message,
autoRender: true,
autoDestroy: true,
class: 'icon-info'
class: 'icon-info audio'
});
return dialog;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ $modalShadowColor: #666666;
}

/* Modal styles */
.modal {
.audio.modal {
background-color: $infoBgColor;
border: 1px solid $infoBorderColor;
box-shadow: 3px 3px 5px $modalShadowColor;
Expand Down

0 comments on commit fa35bd1

Please sign in to comment.