Skip to content

Commit ad0c004

Browse files
authored
fix: status banner bug in StudioHeader (#703)
The status banner was a part of the studio-header, rather than above it, which caused some style issues. The implementation now matches that of Header.
1 parent d706b51 commit ad0c004

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

src/studio-header/StudioHeader.jsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,18 @@ const StudioHeader = ({
4242
const statusAlertMessage = config.STATUS_ALERT_MESSAGE;
4343

4444
return (
45-
<div className="studio-header">
45+
<>
4646
{showStatusAlert && <StatusAlert message={statusAlertMessage} />}
47-
<a className="nav-skip sr-only sr-only-focusable" href="#main">Skip to content</a>
48-
<Responsive maxWidth={841}>
49-
<MobileHeader {...props} />
50-
</Responsive>
51-
<Responsive minWidth={842}>
52-
<HeaderBody {...props} />
53-
</Responsive>
54-
</div>
47+
<div className="studio-header">
48+
<a className="nav-skip sr-only sr-only-focusable" href="#main">Skip to content</a>
49+
<Responsive maxWidth={841}>
50+
<MobileHeader {...props} />
51+
</Responsive>
52+
<Responsive minWidth={842}>
53+
<HeaderBody {...props} />
54+
</Responsive>
55+
</div>
56+
</>
5557
);
5658
};
5759

0 commit comments

Comments
 (0)