diff --git a/src/components/SearchInput.res b/src/components/SearchInput.res index cbbb79460..e43393d86 100644 --- a/src/components/SearchInput.res +++ b/src/components/SearchInput.res @@ -12,7 +12,7 @@ let make = ( ~searchRef=?, ~shouldSubmitForm=true, ~placeholderCss="bg-transparent text-fs-14", - ~bgColor="bg-white border-jp-gray-600 border-opacity-75 focus-within:border-primary", + ~bgColor="border-jp-gray-600 border-opacity-75 focus-within:border-primary", ~iconName="new_search_icon", ~onKeyDown=_ => {()}, ~showSearchIcon=true, @@ -54,10 +54,10 @@ let make = ( let exitCross = useLottieJson(exitSearchCross) let enterCross = useLottieJson(enterSearchCross)
+ dark:border-jp-gray-850 dark:border-opacity-50 dark:hover:border-opacity-100 ${bgColor} `}> ReactDOM.Ref.domRef} type_="text" diff --git a/src/components/SelectBox.res b/src/components/SelectBox.res index 8b3dc8d05..e4170356c 100644 --- a/src/components/SelectBox.res +++ b/src/components/SelectBox.res @@ -839,7 +839,7 @@ module BaseSelect = { wrapBasis->LogicUtils.isEmptyString ? "" : " flex flex-wrap justify-between" }}> {if filteredOptions->Array.length === 0 { -
+
{React.string("No matching records found")}
} else if filteredOptions->Array.find(item => item.value === "Loading...")->Option.isSome { @@ -1010,7 +1010,7 @@ module BaseSelectButton = { let overflowClass = !isDropDown ? "" : "overflow-auto"
{if searchable { @@ -1296,7 +1296,7 @@ module BaseRadio = { ~customStyle="", ~searchable=?, ~isMobileView=false, - ~customSearchStyle="bg-jp-gray-100 dark:bg-jp-gray-950 p-2", + ~customSearchStyle="dark:bg-jp-gray-950 p-2", ~descriptionOnHover=false, ~addDynamicValue=false, ~dropdownCustomWidth="w-80", @@ -1456,7 +1456,7 @@ module BaseRadio = { } let searchInputUI =
+ className={`border-b p-2 border-jp-gray-lightmode_steelgray border-opacity-75 dark:border-jp-gray-960 ${customSearchStyle}`}>
{if newOptions->Array.length === 0 && showMatchingRecordsText { -
+
{React.string("No matching records found")}
} else if isNonGrouped { @@ -1591,7 +1591,7 @@ module BaseDropdown = { ~addButton=false, ~marginTop="mt-10", //to position dropdown below the button, ~customStyle="", - ~customSearchStyle="bg-jp-gray-100 dark:bg-jp-gray-950 p-2", + ~customSearchStyle="dark:bg-jp-gray-950 p-2", ~showSelectionAsChips=true, ~showToolTip=false, ~showNameAsToolTip=false, @@ -1853,6 +1853,7 @@ module BaseDropdown = { showSearchIcon ?sortingBasedOnDisabled preservedAppliedOptions + customSearchStyle /> } else if addButton { } @@ -2036,7 +2038,7 @@ module BaseDropdown = { dropDirection == BottomMiddle || dropDirection == BottomRight ? "origin-top" - : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} bg-gray-50 dark:bg-jp-gray-950 ${fullLength + : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} rounded-lg dark:bg-jp-gray-950 ${fullLength ? "w-full" : ""}`} ref={dropdownRef->ReactDOM.Ref.domRef}> @@ -2056,7 +2058,7 @@ module BaseDropdown = { dropDirection == BottomMiddle || dropDirection == BottomRight ? "origin-top" - : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} bg-gray-50 dark:bg-jp-gray-950`} + : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} rounded-lg dark:bg-jp-gray-950`} ref={dropdownRef->ReactDOM.Ref.domRef}> optionsElement
diff --git a/src/screens/OMPSwitch/MerchantSwitch.res b/src/screens/OMPSwitch/MerchantSwitch.res index 736273181..9191b5b31 100644 --- a/src/screens/OMPSwitch/MerchantSwitch.res +++ b/src/screens/OMPSwitch/MerchantSwitch.res @@ -139,7 +139,9 @@ let make = () => { let (showSwitchingMerch, setShowSwitchingMerch) = React.useState(_ => false) let (arrow, setArrow) = React.useState(_ => false) let { - globalUIConfig: {sidebarColor: {backgroundColor, primaryTextColor, borderColor}}, + globalUIConfig: { + sidebarColor: {backgroundColor, primaryTextColor, borderColor, secondaryTextColor}, + }, } = React.useContext(ThemeProvider.themeContext) let getMerchantList = async () => { try { @@ -222,7 +224,7 @@ let make = () => { hideMultiSelectButtons=true addButton=false customStyle={`!border-none w-fit ${backgroundColor.sidebarSecondary} !${borderColor} `} - searchable=false + searchable=true baseComponent={} baseComponentCustomStyle={`!border-none`} bottomComponent={ { customScrollStyle dropdownContainerStyle shouldDisplaySelectedOnTop=true + customSearchStyle={`${backgroundColor.sidebarSecondary} ${secondaryTextColor} ${borderColor}`} />