When Clicked on cross button right to the notification bar it closes the notification and navbar moves to top, but I need both should stick to top and and behaviour should be same like when notification bar is closed navbar still its should stick to top.
For Notification Bar code:
display: flex;
align-content: center;
justify-content: space-around;
align-items: center;
padding: 16px 0;
position: sticky;
top: 0;
For Navbar code:
background-size: cover;
background-position: top;
display: flex;
align-items: center;
justify-content: space-around;
overflow: hidden;
top: 15px;
position: sticky;