Skip to content

Commit 3ef01e6

Browse files
committed
Replace no options message and loading message colors
1 parent 37dc172 commit 3ef01e6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/chakra-components/menu.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export const LoadingMessage = <
160160
};
161161

162162
const initialSx: SystemStyleObject = {
163-
color: "chakra-placeholder-color",
163+
color: "chakra-subtle-text",
164164
textAlign: "center",
165165
paddingY: verticalPaddings[size],
166166
fontSize: size,
@@ -202,13 +202,6 @@ export const NoOptionsMessage = <
202202
selectProps: { chakraStyles, size: sizeProp },
203203
} = props;
204204

205-
/**
206-
* The chakra UI global placeholder color
207-
*
208-
* @see {@link https://github.com/chakra-ui/chakra-ui/blob/13c6d2e08b61e179773be4722bb81173dd599306/packages/theme/src/styles.ts#L13}
209-
*/
210-
const color = useColorModeValue("gray.400", "whiteAlpha.400");
211-
212205
const size = useSize(sizeProp);
213206

214207
const verticalPaddings: SizeProps = {
@@ -218,7 +211,7 @@ export const NoOptionsMessage = <
218211
};
219212

220213
const initialSx: SystemStyleObject = {
221-
color,
214+
color: "chakra-subtle-text",
222215
textAlign: "center",
223216
paddingY: verticalPaddings[size],
224217
fontSize: size,

0 commit comments

Comments
 (0)