Skip to content
Snippets Groups Projects
Commit 993debf1 authored by Ekaterina Kondareva's avatar Ekaterina Kondareva
Browse files

Merge branch 'NXSTAGE-X-Search_cludohide' into 'development'

Use cludo.hide instead of adding a class

See merge request julkiset-sivut/design-system-lib!153
parents 3d169a5a 3997471f
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,12 @@ export interface SearchLabels {
label?: string;
}
declare global {
interface Window {
CludoSayt: any;
}
}
import {Component, Prop, h, Watch, State, Listen, Host, Event, EventEmitter, Element} from '@stencil/core';
import {ComponentLabels} from '../site-header';
import {ColorVariant} from '../../../utils/utils';
......@@ -97,7 +103,10 @@ export class SiteSearch {
let cludoSayt = document.querySelectorAll('stencil-cludo-sayt')[0] as HTMLElement;
if (cludoSayt) {
cludoSayt.classList.add('hidden');
let CludoSayt = window.CludoSayt;
if (typeof CludoSayt !== 'undefined') {
CludoSayt.hide();
}
}
this.showBackdropShadow();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment