Skip to content

Commit

Permalink
Merge branch 'release-3.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 19, 2021
2 parents b4dfa12 + 7754a09 commit e543206
Show file tree
Hide file tree
Showing 16 changed files with 249 additions and 267 deletions.
45 changes: 45 additions & 0 deletions migrations/Version202110280904504106_pciSamples.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

declare(strict_types=1);

namespace oat\pciSamples\migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\IrreversibleMigration;
use oat\tao\scripts\tools\migrations\AbstractMigration;
use oat\pciSamples\scripts\install\RegisterPciTextReaderIMS;
use oat\qtiItemPci\model\PciModel;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version202110280904504106_pciSamples extends AbstractMigration
{

public function getDescription(): string
{
return 'Add basic keyboard navigation to the TextReaderInteraction';
}

public function up(Schema $schema): void
{
$registry = (new PciModel())->getRegistry();
if ($registry->has('textReaderInteraction')) {
$registry->removeAllVersions('textReaderInteraction');
}
$this->addReport(
$this->propagate(
new RegisterPciTextReaderIMS()
)(
['1.1.0']
)
);
}

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
cursor: pointer;
background-color: #f2f2f2;

&:hover {
&:hover, &:focus {
color: #0e5d91;
font-weight: bold;
}
Expand Down Expand Up @@ -307,4 +307,4 @@
text-decoration: none;
}
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
color: #266d9c;
font-size: 1.2rem;

&:hover {
&:hover, &:focus {
color: #a4bbc5;
font-weight: bold;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
\{{#if showTabs}}
<ul class="tr-tab-buttons js-tab-buttons">
\{{#each pages}}
<li data-page-num="\{{@index}}" data-page-id="\{{id}}" class="tr-tab-buttons__item">
<li data-page-num="\{{@index}}" data-page-id="\{{id}}" class="tr-tab-buttons__item" role="button" tabindex="0">
<span class="tr-tab-label">\{{inc @index}}</span>
</li>
\{{/each}}
</ul>
\{{/if}}
\{{/if}}
<div class="tr-pages-wrap clearfix">
<div class="tr-pages" style="height: \{{pageWrapperHeight}}px">
\{{#each pages}}
Expand All @@ -34,8 +34,8 @@
</div>
</div>
]]>
</script>
<script class="text-reader-nav-tpl" type="text/x-handlebars-template">
</script>
<script class="text-reader-nav-tpl" type="text/x-handlebars-template">
<![CDATA[
\{{#if showNavigation}}
<div class="tr-nav-wrap tr-nav-\{{tabsPosition}}">
Expand All @@ -54,4 +54,4 @@
\{{/if}}
]]>
</script>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"typeIdentifier": "textReaderInteraction",
"label": "Text reader",
"description": "The Paging widget combines a scrolling widget with additional paging controls.",
"version": "1.0.0",
"version": "1.1.0",
"author": "Aleh Hutnikau",
"email": "contact@taotesting.com",
"tags": [
Expand Down
Loading

0 comments on commit e543206

Please sign in to comment.