Skip to content

Commit

Permalink
getting start modal
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Apr 21, 2024
1 parent d6775c7 commit 5e77d17
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const WorkspaceOverviewGettingStartModal = (props: Props) => {
return {
label: category,
checked: selectedItemName === category ? 'on' : undefined,
className: 'getStartCategoryItem',
className: 'gettingStartCategoryItem',
};
});

Expand Down Expand Up @@ -88,16 +88,16 @@ export const WorkspaceOverviewGettingStartModal = (props: Props) => {
});

return (
<EuiModal onClose={onCloseModal} maxWidth={false} style={{ width: '90vw', height: '75vh' }}>
<EuiModal onClose={onCloseModal} maxWidth={false} className={'gettingStartModel'}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>Define your path forward</h2>
<EuiText color="subdued">Discover tailored solutions for your unique objectives</EuiText>
</EuiModalHeaderTitle>
</EuiModalHeader>

<EuiModalBody>
<EuiFlexGroup>
<EuiModalBody style={{ overflowY: 'hidden' }}>
<EuiFlexGroup gutterSize={'s'}>
<EuiFlexItem grow={2}>
<EuiSelectable
aria-label="category selection"
Expand All @@ -113,15 +113,18 @@ export const WorkspaceOverviewGettingStartModal = (props: Props) => {
bordered: false,
rowHeight: 48,
onFocusBadge: false,
windowProps: {
className: 'gettingStartCategoryItemList',
},
}}
>
{(list) => {
return list;
}}
</EuiSelectable>
</EuiFlexItem>
<EuiFlexItem grow={10}>
<EuiPanel color="subdued" style={{ overflowY: 'auto', height: '50vh' }}>
<EuiFlexItem grow={10} style={{ margin: '0px' }}>
<EuiPanel color="subdued" className={'gettingStartModel_body'} grow={false}>
{cardList}
</EuiPanel>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,28 @@
* SPDX-License-Identifier: Apache-2.0
*/

.getStartCategoryItem {
.gettingStartModel {
width: calc(90vw - #{$euiSize});
}

.gettingStartModel_body {
overflow-y: auto;
height: calc(75vh - 200px);
}

.gettingStartCategoryItem {
border: none !important;
}

.gettingStartCategory div {
&:focus-within {
outline: none;
animation: none !important;
.gettingStartCategory {
div {
&:focus-within {
outline: none;
animation: none !important;
}
}
}

.gettingStartCategoryItemList {
mask: none !important;
}

0 comments on commit 5e77d17

Please sign in to comment.