Skip to content

Commit

Permalink
fix: get theme element working in storybook
Browse files Browse the repository at this point in the history
Fix an issue where the theme element was not updating in Storybook.
Also, remove a visual test that is no longer used.
  • Loading branch information
cuberoot authored and Westbrook committed Dec 20, 2019
1 parent 7641228 commit 4c5e478
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/theme/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class Theme extends HTMLElement {
}

protected attributeChangedCallback(): void {
if (window.ShadyCSS !== undefined) {
if (window.ShadyCSS !== undefined && !window.ShadyCSS.nativeShadow) {
window.ShadyCSS.styleElement(this);
} else {
this.adoptStyles();
Expand Down
1 change: 0 additions & 1 deletion test/visual/stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ module.exports = [
'theme--default',
'theme--none',
'theme--nested-theme',
'theme--nested-color',
'toast--default',
'toast--negative',
'toast--positive',
Expand Down

0 comments on commit 4c5e478

Please sign in to comment.