-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy path_app.js
More file actions
27 lines (26 loc) · 853 Bytes
/
_app.js
File metadata and controls
27 lines (26 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import {defineSlotRecipe} from '@chakra-ui/react'
export default defineSlotRecipe({
slots: ['container', 'headerWrapper'],
base: {
container: {
flex: 1,
display: 'flex',
flexDirection: 'column',
backgroundColor: 'white',
minWidth: '375px'
},
headerWrapper: {
position: 'sticky',
top: 0,
// can't import theme object in Chakra V3, Let's use a hardcode value for now.
// Will circle back when we start working on fixing component styling
zIndex: 'sticky'
}
}
})