1
1
import BarDesign from '@ui5/webcomponents/dist/types/BarDesign.js' ;
2
2
import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js' ;
3
3
import TableOverflowMode from '@ui5/webcomponents/dist/types/TableOverflowMode.js' ;
4
+ import { getScopedVarName } from '@ui5/webcomponents-base/dist/CustomElementsScope.js' ;
4
5
import searchIcon from '@ui5/webcomponents-icons/dist/search.js' ;
5
6
import { enrichEventWithDetails , useI18nBundle , useStylesheet } from '@ui5/webcomponents-react-base' ;
6
7
import type { MouseEventHandler , ReactElement } from 'react' ;
@@ -17,6 +18,7 @@ import {
17
18
SHARING ,
18
19
VIEW
19
20
} from '../../i18n/i18n-defaults.js' ;
21
+ import type { CommonProps } from '../../types/CommonProps.js' ;
20
22
import { Bar } from '../../webComponents/Bar/index.js' ;
21
23
import { Button } from '../../webComponents/Button/index.js' ;
22
24
import type { DialogPropTypes } from '../../webComponents/Dialog/index.js' ;
@@ -223,6 +225,11 @@ export const ManageViewsDialog = (props: ManageViewsDialogPropTypes) => {
223
225
onBeforeClose = { handleClose }
224
226
headerText = { manageViewsText }
225
227
initialFocus = { `search-${ uniqueId } ` }
228
+ style = {
229
+ {
230
+ '--_ui5wcr_popup_default_header_height' : `var(${ getScopedVarName ( '--_ui5_popup_default_header_height' ) } )`
231
+ } as CommonProps [ 'style' ] & { '--_ui5wcr_popup_default_header_height' : string }
232
+ }
226
233
header = {
227
234
< FlexBox direction = { FlexBoxDirection . Column } style = { { width : '100%' } } alignItems = { FlexBoxAlignItems . Center } >
228
235
< h2 className = { classNames . headerText } > { manageViewsText } </ h2 >
0 commit comments