Skip to content

Commit

Permalink
Ant Select minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gilluminate committed Dec 11, 2024
1 parent b6961d2 commit f77ca72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/admin-ui/src/theme/ant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const antTheme: AntThemeConfig = {
bodyBg: palette.FIDESUI_NEUTRAL_50,
},
Select: {
optionActiveBg: palette.FIDESUI_SANDSTONE,
optionActiveBg: palette.FIDESUI_NEUTRAL_50,
},
Tooltip: {
colorBgSpotlight: palette.FIDESUI_MINOS,
Expand Down
4 changes: 3 additions & 1 deletion clients/fidesui/src/hoc/CustomSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChevronDown } from "@carbon/icons-react";
import { Checkmark, ChevronDown } from "@carbon/icons-react";
import { Flex, Select, SelectProps, Typography } from "antd/lib";
import { BaseOptionType, DefaultOptionType } from "antd/lib/select";
import React from "react";
Expand Down Expand Up @@ -37,13 +37,15 @@ const withCustomProps = (WrappedComponent: typeof Select) => {
optionRender = optionDescriptionRender,
className = "w-full",
suffixIcon = <ChevronDown />,
menuItemSelectedIcon = <Checkmark />,
...props
}: SelectProps<ValueType, OptionType>) => {
const customProps = {
placeholder,
optionRender,
className,
suffixIcon,
menuItemSelectedIcon,
"data-testid": `select${props.id ? `-${props.id}` : ""}`,
...props,
};
Expand Down

0 comments on commit f77ca72

Please sign in to comment.