Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

feat: Upgrade govuk frontend to 5.x #201

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion module/Olcs/view/layout/base.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ echo $this->doctype(); ?>
<head>
<?php echo $this->partial('partials/head', ['title' => $title]); ?>
</head>
<body class="internal" id="<?php echo $this->pageId(); ?>">
<body class="internal govuk-frontend-supported" id="<?php echo $this->pageId(); ?>">
<?php echo $this->version(); ?>

<script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
Expand Down Expand Up @@ -104,6 +104,10 @@ echo $this->doctype(); ?>

</div><!-- .page-wrapper-->
<?php echo $this->partial('partials/body-end'); ?>
<script type="module">
import { initAll } from '<?php echo $this->assetPath('js/govuk-frontend.min.js'); ?>'
initAll()
</script>
</body>

</html>
6 changes: 5 additions & 1 deletion module/Olcs/view/layout/signin.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<?php echo $this->partial('partials/head', ['title' => $this->pageTitle()]); ?>
</head>
<body class="internal sign-in" id="<?php echo $this->pageId(); ?>">
<body class="internal sign-in govuk-frontend-supported" id="<?php echo $this->pageId(); ?>">
<?php echo $this->version(); ?>
<script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>

Expand All @@ -31,5 +31,9 @@
</div><!-- .page-wrapper-->

<?php echo $this->partial('partials/body-end'); ?>
<script type="module">
import { initAll } from '<?php echo $this->assetPath('js/govuk-frontend.min.js'); ?>'
initAll()
</script>
</body>
</html>
Loading