diff --git a/packages/ui-components/src/components/Select/Select.component.tsx b/packages/ui-components/src/components/Select/Select.component.tsx
index ac023e217e..8dc8afbdcd 100644
--- a/packages/ui-components/src/components/Select/Select.component.tsx
+++ b/packages/ui-components/src/components/Select/Select.component.tsx
@@ -418,33 +418,34 @@ export const Select = ({
)
}}
- {createPortal(
-
-
- {children}
-
-
,
- portalContainerRef ?? document.body
- )}
+
+ {children}
+
+ ,
+ portalContainerRef ?? document.body
+ )}
>
)
diff --git a/packages/ui-components/src/components/SelectOption/SelectOption.component.tsx b/packages/ui-components/src/components/SelectOption/SelectOption.component.tsx
index 533061b069..c2a82e7267 100644
--- a/packages/ui-components/src/components/SelectOption/SelectOption.component.tsx
+++ b/packages/ui-components/src/components/SelectOption/SelectOption.component.tsx
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import React, { Fragment, HTMLAttributes, ReactNode, useContext, useEffect } from "react"
+import React, { HTMLAttributes, ReactNode, useContext, useEffect } from "react"
import { ListboxOption } from "@headlessui/react"
import { SelectContext } from "../Select/Select.component"
import { Icon } from "../Icon"
@@ -90,20 +90,23 @@ export const SelectOption = ({
}, [value, label, children])
return (
-
- {({ selected }) => (
-
+ `
+ juno-select-option
+ jn:min-h-10
+ ${optionStyles}
+ ${selected ? "juno-select-option-selected " + selectedOptionStyles : unselectedOptionStyles}
+ ${disabled ? "juno-select-option-disabled jn:opacity-50 jn:cursor-not-allowed" : ""}
+ ${truncateOptions ? "juno-select-option-truncate" : ""}
+ ${className}
+ `}
+ {...props}
+ >
+ {({ selected }: { selected: boolean }) => (
+ <>
{selected ? : ""}
{children || label || value}
-
+ >
)}
)