Skip to content

Commit 980959d

Browse files
committed
fix: remove empty style file and update simple page
1 parent 85ec356 commit 980959d

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

pages/tooltip/simple.page.tsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import React, { useContext, useRef, useState } from 'react';
44

5+
import Box from '~components/box';
56
import Button from '~components/button';
67
import FormField from '~components/form-field';
78
import SegmentedControl from '~components/segmented-control';
@@ -200,20 +201,9 @@ export default function TooltipSimple() {
200201
<div onMouseDown={handleTooltipMouseDown} onMouseUp={handleTooltipMouseUp}>
201202
<Tooltip
202203
content={
203-
<div>
204-
<code
205-
style={{
206-
display: 'block',
207-
padding: '8px',
208-
background: '#232f3e',
209-
color: '#fff',
210-
borderRadius: '4px',
211-
fontSize: '12px',
212-
}}
213-
>
214-
{`const AWS = require('aws-sdk');\nAWS.config.update({\n region: 'us-west-2'\n});`}
215-
</code>
216-
</div>
204+
<Box variant="awsui-inline-code">
205+
{`const AWS = require('aws-sdk');\nAWS.config.update({\n region: 'us-west-2'\n});`}
206+
</Box>
217207
}
218208
getTrack={() => codeRef.current}
219209
position="bottom"

src/tooltip/styles.scss

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)