Skip to content

Commit 9728f0b

Browse files
committed
chore: Mezzanine border on sidecar demo page
1 parent 7a76326 commit 9728f0b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pages/app-layout/sidecar-demo.page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
import React, { useContext, useState } from 'react';
3+
import React, { useContext, useEffect, useState } from 'react';
44

55
import {
66
AppLayout,
@@ -52,6 +52,13 @@ export default function WithDrawers() {
5252
setToolsOpen(true);
5353
}
5454

55+
useEffect(() => {
56+
const headerEl = document.querySelector('#h');
57+
if (headerEl && headerEl instanceof HTMLElement) {
58+
headerEl!.style.borderBottom = '1px solid #424650';
59+
}
60+
}, []);
61+
5562
return (
5663
<AppLayout
5764
ariaLabels={{ ...appLayoutLabels, ...drawerLabels }}

0 commit comments

Comments
 (0)