Skip to content

Commit 49abdca

Browse files
committed
fix(ui): mobile nav items too low, text misaligned with borders
Root cause: the close button's base styles (float:right, margin with 1rem bottom) were never fully neutralized in the mobile override. In a flex column container float is ignored, so the button consumed ~3.25rem as a flex row. Previous fix attempts added position:absolute but left float and margin inherited, which could still affect layout on iOS WebKit. Fix: explicitly reset float:none and margin:0 alongside position: absolute, using physical properties (top/right) for maximum browser compatibility. Also remove first-child top border and zero out nav link inline padding so text aligns flush with divider lines.
1 parent 715ac8d commit 49abdca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/design-system/components/flex-header

src/design-system/components/flex-header/styles.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,10 @@ flex-header {
367367
.flex-header__close-btn {
368368
display: block;
369369
position: absolute;
370-
inset-block-start: 0.5rem;
371-
inset-inline-end: 0.5rem;
370+
top: 0.5rem;
371+
right: 0.5rem;
372+
float: none;
373+
margin: 0;
372374
}
373375

374376
.flex-header__nav-list {

0 commit comments

Comments
 (0)