Changes between Version 1 and Version 2 of Ticket #32747, comment 40
- Timestamp:
- 09/29/2022 10:06:42 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32747, comment 40
v1 v2 3 3 Technically someone ''can'' remove/replace the `#wp-admin-bar-menu-toggle` element or show/hide it at different screen sizes. 4 4 - 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 ) )`.)