File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/react/src/SubNav Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/react-brand ' : patch
3
+ ---
4
+
5
+ Fix layout shift in ` SubNav ` by ensuring separator visibility is determined pre-hydration.
Original file line number Diff line number Diff line change 279
279
animation : fade-in 0.3s var (--brand-animation-easing-glide ) forwards;
280
280
}
281
281
282
- .SubNav__heading-separator--main .SubNav__heading-separator--has-adjacent-label ,
282
+ .SubNav__heading-separator--main : not ( .SubNav__heading-separator--has-adjacent-label ) ,
283
283
.SubNav__heading-separator--subheading-active ,
284
284
.SubNav__subheading-container-active {
285
285
display : none;
296
296
z-index : 9998 ;
297
297
}
298
298
299
- .SubNav__heading-separator : not (.SubNav__heading-separator--has-adjacent-label ) {
300
- display : none;
301
- }
302
-
303
299
.SubNav__links-overlay {
304
300
position : relative;
305
301
display : flex;
You can’t perform that action at this time.
0 commit comments