[wp-trac] [WordPress Trac] #52354: Twenty Twenty-One: primary menu disappears at 481px
WordPress Trac
noreply at wordpress.org
Tue Apr 16 01:43:23 UTC 2024
#52354: Twenty Twenty-One: primary menu disappears at 481px
---------------------------+------------------------------
Reporter: stephenbrook | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: needs-testing | Focuses:
---------------------------+------------------------------
Comment (by siliconforks):
The reason this bug is occurring is that the `.primary-navigation >
.primary-menu-container` (desktop menu) is visible when `(min-width:
482px)`, while the `.menu-button-container` (mobile menu) is visible when
`(max-width: 481px)`. That means that, if 481px < width < 482px (e.g.,
suppose the width is 481.5px), then neither menu will be visible.
I'm not sure how the original reporter was able to reproduce this at
481px; I suspect when the browser was displaying "481" the width was
actually 481.5 (or possibly some other fractional value between 481 and
482) and rounded down or truncated for display purposes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52354#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list