Skip to content

Commit

Permalink
fix: support hidden attribute on web components
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 10, 2021
1 parent cc2d75c commit 3586756
Show file tree
Hide file tree
Showing 27 changed files with 108 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/article/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/badge-counter/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: inline-block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/badge-data/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: inline-block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/badge-status/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: inline-block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/breadcrumb/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/button/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: inline-block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/document/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/form-field-checkbox/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/form-field-description/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/form-field-textarea/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/form-field-textbox/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/form-toggle/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
display: inline-block;
}

:host([hidden]) {
display: none !important;
}

.utrecht-form-toggle:not(.utrecht-form-toggle--disabled):focus {
@extend .utrecht-form-toggle--focus;
}
Expand Down
4 changes: 4 additions & 0 deletions components/heading-1/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/heading-2/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/heading-3/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/heading-4/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/heading-5/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/heading-6/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/heading/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/html-content/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/icon/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
display: inline-block;
}

:host([hidden]) {
display: none !important;
}

svg {
color: var(--utrecht-icon-color, var(--utrecht-document-color, currentColor));
height: var(--utrecht-icon-size, 100%);
Expand Down
4 changes: 4 additions & 0 deletions components/logo/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: inline;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/page-footer/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/pagination/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/paragraph/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/separator/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}
4 changes: 4 additions & 0 deletions components/textbox/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
:host {
display: block;
}

:host([hidden]) {
display: none !important;
}

0 comments on commit 3586756

Please sign in to comment.