Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #32747, comment 40


Ignore:
Timestamp:
09/29/2022 10:06:42 PM (2 years ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32747, comment 40

    v1 v2  
    33Technically someone ''can'' remove/replace the `#wp-admin-bar-menu-toggle` element or show/hide it at different screen sizes.
    44- When I removed the toggle and hovered over links, I did not get console errors. It still might be worth checking that the toggle exists.
    5 - If someone changes the breakpoint, updating quite a lot of CSS, the window width would not help in that case either.
     5- If someone changes the breakpoint, updating quite a lot of CSS, the window width would not help in that case any more than checking the toggle state. (I had considered using it as a fallback for the other: `if ( adjustment > 1 && ( $('#wp-admin-bar-menu-toggle').is(':hidden') || $window.width() > 782 ) )`.)