Skip to content

Commit dcbf132

Browse files
committed
Add light mode styles for skeleton loader
1 parent 28fbde8 commit dcbf132

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/compass-indexes/src/components/create-index-form/query-flow-section.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ const lightModeCodeEditorStyles = css({
8080
const indexSuggestionsLoaderStyles = css({
8181
marginBottom: spacing[600],
8282
padding: spacing[600],
83+
borderRadius: editorContainerRadius,
84+
});
85+
86+
const indexSuggestionsLoaderLightStyles = css({
8387
background: palette.gray.light3,
8488
border: `1px solid ${palette.gray.light2}`,
85-
borderRadius: editorContainerRadius,
8689
});
8790

8891
const insightStyles = css({
@@ -240,7 +243,10 @@ const QueryFlowSection = ({
240243
{isFetchingIndexSuggestions ? (
241244
<ParagraphSkeleton
242245
data-testid="query-flow-section-code-loader"
243-
className={indexSuggestionsLoaderStyles}
246+
className={cx(
247+
indexSuggestionsLoaderStyles,
248+
!darkMode && indexSuggestionsLoaderLightStyles
249+
)}
244250
/>
245251
) : (
246252
indexSuggestions && (

0 commit comments

Comments
 (0)