File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
packages/react/src/SubNav Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/react-brand ' : patch
3
+ ---
4
+
5
+ Fixed a bug in the ` SubNav ` component where the separator could appear on a new line during initial render in Safari.
Original file line number Diff line number Diff line change 536
536
display : none;
537
537
}
538
538
539
+ .SubNav__container--with-anchor-nav .SubNav__heading {
540
+ padding-block-end : 1px ;
541
+ }
542
+
539
543
.SubNav__heading {
540
544
font-size : calc (var (--base-size-20 ) - 2px );
541
545
line-height : var (--base-size-24 );
542
546
}
543
547
544
548
.SubNav__heading-separator {
545
549
margin-inline-end : var (--base-size-20 );
550
+ display : inline-flex;
551
+ top : 0 ;
552
+ }
553
+
554
+ .SubNav__container--with-anchor-nav .SubNav__heading-separator {
555
+ top : -1px ;
546
556
}
547
557
548
558
.SubNav--header-container-outer {
554
564
margin-inline-end : var (--base-size-20 );
555
565
}
556
566
567
+ .SubNav__header-container {
568
+ display : flex;
569
+ align-items : center;
570
+ }
571
+
557
572
.SubNav__subHeading {
558
573
font-size : var (--brand-text-size-100 );
559
574
line-height : var (--brand-text-lineHeight-100 );
You can’t perform that action at this time.
0 commit comments