Commit 9bc25f18 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

fix: #3568141 Try to avoid style recalculation in Olivero's isDesktopNav

By: catch
By: smustgrave
(cherry picked from commit cfdccec3)
(cherry picked from commit 371e0730)
parent fe299100
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@
   *   State to change the sticky header to.
   */
  function toggleStickyHeaderState(pinnedState) {
    if (isDesktopNav()) {
    if (siteHeaderFixable !== null) {
      siteHeaderFixable.classList.toggle('is-expanded', pinnedState);
      stickyHeaderToggleButton.setAttribute('aria-checked', pinnedState);
    }