Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system-lib
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
julkiset-sivut
design-system-lib
Commits
3997471f
Commit
3997471f
authored
4 years ago
by
Tuukka Turu
Browse files
Options
Downloads
Patches
Plain Diff
Use cludo.hide instead of adding a class
parent
3d169a5a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/site-header/site-search/site-search.tsx
+10
-1
10 additions, 1 deletion
src/components/site-header/site-search/site-search.tsx
with
10 additions
and
1 deletion
src/components/site-header/site-search/site-search.tsx
+
10
−
1
View file @
3997471f
...
@@ -10,6 +10,12 @@ export interface SearchLabels {
...
@@ -10,6 +10,12 @@ export interface SearchLabels {
label
?:
string
;
label
?:
string
;
}
}
declare
global
{
interface
Window
{
CludoSayt
:
any
;
}
}
import
{
Component
,
Prop
,
h
,
Watch
,
State
,
Listen
,
Host
,
Event
,
EventEmitter
,
Element
}
from
'
@stencil/core
'
;
import
{
Component
,
Prop
,
h
,
Watch
,
State
,
Listen
,
Host
,
Event
,
EventEmitter
,
Element
}
from
'
@stencil/core
'
;
import
{
ComponentLabels
}
from
'
../site-header
'
;
import
{
ComponentLabels
}
from
'
../site-header
'
;
import
{
ColorVariant
}
from
'
../../../utils/utils
'
;
import
{
ColorVariant
}
from
'
../../../utils/utils
'
;
...
@@ -97,7 +103,10 @@ export class SiteSearch {
...
@@ -97,7 +103,10 @@ export class SiteSearch {
let
cludoSayt
=
document
.
querySelectorAll
(
'
stencil-cludo-sayt
'
)[
0
]
as
HTMLElement
;
let
cludoSayt
=
document
.
querySelectorAll
(
'
stencil-cludo-sayt
'
)[
0
]
as
HTMLElement
;
if
(
cludoSayt
)
{
if
(
cludoSayt
)
{
cludoSayt
.
classList
.
add
(
'
hidden
'
);
let
CludoSayt
=
window
.
CludoSayt
;
if
(
typeof
CludoSayt
!==
'
undefined
'
)
{
CludoSayt
.
hide
();
}
}
}
this
.
showBackdropShadow
();
this
.
showBackdropShadow
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment