Skip to content

Commit eb29047

Browse files
committed
fixes Breadcrumb story typescript errors
1 parent 792b1ef commit eb29047

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.EditableTextInput {
2+
min-width: 120px;
3+
max-width: 180px;
4+
font-size: inherit;
5+
border: var(--borderWidth-thin) dashed var(--borderColor-muted);
6+
}
7+
8+
.EditableTextInput:focus {
9+
border: var(--borderWidth-thin) solid var(--borderColor-accent-emphasis);
10+
}

packages/react/src/Breadcrumbs/Breadcrumbs.dev.stories.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {useState} from 'react'
22
import Breadcrumbs from '.'
33
import TextInput from '../TextInput'
4+
import classes from './Breadcrumbs.dev.stories.module.css'
45

56
export default {
67
title: 'Components/Breadcrumbs/Dev',
@@ -146,15 +147,7 @@ export const WithEditableNameInput = () => (
146147
<TextInput
147148
defaultValue="Untitled Document"
148149
size="small"
149-
sx={{
150-
minWidth: '120px',
151-
maxWidth: '180px',
152-
fontSize: 'inherit',
153-
border: '1px dashed var(--borderColor-muted)',
154-
'&:focus': {
155-
border: '1px solid var(--borderColor-accent-emphasis)',
156-
},
157-
}}
150+
className={classes.EditableTextInput}
158151
aria-label="Edit document name"
159152
/>
160153
</Breadcrumbs.Item>

0 commit comments

Comments
 (0)