feat: Ability to Hyperlink text in Checkbox on Additional Questions (#15194)
* feat: Ability to Hyperlink text in Checkbox on Additional Questions * update * fix and update * fix type error * fix and update * dpdate * fix type error * fix unit test * Update * fix tests * revert test * remove yarn.lock * remove schema.prisma * update * remove log * revert --------- Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Amit Sharma <[email protected]>
This commit is contained in:
9 files changed
+118
-38
No files matched your search
@@ -89,11 +89,15 @@ type DialogContentProps = React.ComponentProps<(typeof DialogPrimitive)["Content
|
||||
actionDisabled?: boolean;
|
||||
Icon?: IconName;
|
||||
enableOverflow?: boolean;
|
||||
forceOverlayWhenNoModal?: boolean;
|
||||
};
|
||||
|
||||
// enableOverflow:- use this prop whenever content inside DialogContent could overflow and require scrollbar
|
||||
export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(
|
||||
({ children, title, Icon: icon, enableOverflow, type = "creation", ...props }, forwardedRef) => {
|
||||
(
|
||||
{ children, title, Icon: icon, enableOverflow, forceOverlayWhenNoModal, type = "creation", ...props },
|
||||
forwardedRef
|
||||
) => {
|
||||
const isPlatform = useIsPlatform();
|
||||
const [Portal, Overlay, Content] = useMemo(
|
||||
() =>
|
||||
@@ -108,7 +112,11 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
|
||||
);
|
||||
return (
|
||||
<Portal>
|
||||
<Overlay className="fadeIn fixed inset-0 z-50 bg-neutral-800 bg-opacity-70 transition-opacity dark:bg-opacity-70 " />
|
||||
{forceOverlayWhenNoModal ? (
|
||||
<div className="fadeIn fixed inset-0 z-50 bg-neutral-800 bg-opacity-70 transition-opacity dark:bg-opacity-70 " />
|
||||
) : (
|
||||
<Overlay className="fadeIn fixed inset-0 z-50 bg-neutral-800 bg-opacity-70 transition-opacity dark:bg-opacity-70 " />
|
||||
)}
|
||||
<Content
|
||||
{...props}
|
||||
className={classNames(
|
||||
|
||||
@@ -93,6 +93,7 @@ export const Editor = (props: TextEditorProps) => {
|
||||
readOnly={!editable}
|
||||
style={{ height: props.height }}
|
||||
className="editor-input"
|
||||
data-testid="editor-input"
|
||||
/>
|
||||
}
|
||||
placeholder={
|
||||
|
||||
Reference in new issue
Block a user