diff --git a/.storybook/static/preview-head.js b/.storybook/static/preview-head.js index 0b5b6a1f76..ec73f0f3a3 100644 --- a/.storybook/static/preview-head.js +++ b/.storybook/static/preview-head.js @@ -57,6 +57,10 @@ var els = document.querySelectorAll("[aria-controls]"); for (var i = 0; i < els.length; i++) { var el = els[i]; + if (el.hasAttribute('data-ignore-click') || el.hasAttribute('data-aria-controls-listener')) { + return; + } + el.setAttribute('data-aria-controls-listener', 'true') el.addEventListener('click', function () { var targetId = this.getAttribute("aria-controls"); var target = document.getElementById(targetId); @@ -149,11 +153,15 @@ } document.addEventListener('DOMContentLoaded', function () { + setTimeout(function() { runOnPageChange(); + }, 10); const callback = function(mutationsList) { for (let i = 0, len = mutationsList.length; i < len; i++) { if (mutationsList[i].type == 'childList') { + setTimeout(function() { runOnPageChange(); + }, 10); break; } } @@ -444,7 +452,7 @@ function toggleNavigationSubmenu(event) { } function toggleNavigationPopover(event) { - + let button = event.target; if (button.tagName.toLowerCase() === 'a') { button = event.target.parentNode; diff --git a/packages/styles/stories/Components/panel/borderless.example.html b/packages/styles/stories/Components/panel/borderless.example.html index 1c8e71d3cb..860a6afde3 100644 --- a/packages/styles/stories/Components/panel/borderless.example.html +++ b/packages/styles/stories/Components/panel/borderless.example.html @@ -2,7 +2,7 @@
@@ -35,7 +35,7 @@

Panel header collapsed

diff --git a/packages/styles/stories/Components/panel/expandable.example.html b/packages/styles/stories/Components/panel/expandable.example.html index 532eac1b28..e337d6a4a2 100644 --- a/packages/styles/stories/Components/panel/expandable.example.html +++ b/packages/styles/stories/Components/panel/expandable.example.html @@ -2,7 +2,7 @@
@@ -32,7 +32,7 @@

Panel header collapsed

- diff --git a/packages/styles/stories/Components/panel/fixed-height-content.example.html b/packages/styles/stories/Components/panel/fixed-height-content.example.html index ef67caaa8a..a094a35079 100644 --- a/packages/styles/stories/Components/panel/fixed-height-content.example.html +++ b/packages/styles/stories/Components/panel/fixed-height-content.example.html @@ -1,8 +1,8 @@
-

Panel header

@@ -15,7 +15,7 @@

Panel header

-