Skip to content

Commit

Permalink
ID-48 Fix outstanding issues
Browse files Browse the repository at this point in the history
This fixes outstanding issues preventing successful package build
  • Loading branch information
robertsopko committed May 23, 2023
1 parent 035aa90 commit 6d730f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/idsk/all.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { nodeListForEach } from "./common";
import { initExtended } from "./extended";
import { initAll as initAllGOVUKjs } from "../govuk/all";
import Header from './components/header/header'
import HeaderExtended from './components/header-extended/header-extended';
import SearchResultsFilter from './components/search-results-filter/search-results-filter';

Expand All @@ -12,6 +13,11 @@ function initAll(options) {
// Defaults to the entire document if nothing is set.
var scope = typeof options.scope !== 'undefined' ? options.scope : document

var $headers = scope.querySelectorAll('[data-module="idsk-header"]');
nodeListForEach($headers, function ($headers) {
new Header($headers).init();
});

// Find first Header-extended module to enhance.
var $headersExtended = scope.querySelectorAll('[data-module="idsk-header-extended"]');
nodeListForEach($headersExtended, function ($headerExtended) {
Expand All @@ -32,6 +38,7 @@ function initAll(options) {

export {
initAll,
Header,
HeaderExtended,
SearchResultsFilter
}
2 changes: 1 addition & 1 deletion src/idsk/components/footer/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class="idsk-footer__licence-logo idsk-footer__link"
href="{{ params.meta.footerLogoLink | default('#') }}"
>
<img src="{{ params.assetsPath | default('/assets/images/header-extended/') + (params.footerLogoSrc if params.footerLogoSrc else'logo-mirri-farebne.svg') }}" alt="pätička logo">
<img src="{{ params.assetsPath | default('/assets/images/header-extended/') + (params.footerLogoSrc if params.footerLogoSrc else 'logo-mirri-farebne.svg') }}" alt="pätička logo">
</a>
</div>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ params:
required: false
description: these options will be in select dropdown list - required if 'params.tag' == select
- name: autocomplete
type: boolean
required: false
description: This option will set autocomplete parameter
type: boolean
required: false
description: This option will set autocomplete parameter
- name: buttonLabel
type: string
required: true
Expand Down Expand Up @@ -104,4 +104,4 @@ examples:
type: checkbox
required: true
buttonLabel: Registrovať na podujatie
thankYouMsg: Ďakujeme za registráciu na podujatie.
thankYouMsg: Ďakujeme za registráciu na podujatie.

0 comments on commit 6d730f5

Please sign in to comment.