diff --git a/packages/react/src/components/ComboBox/ComboBox.tsx b/packages/react/src/components/ComboBox/ComboBox.tsx index 3fa05acf5ae3..9fdf344dd3e5 100644 --- a/packages/react/src/components/ComboBox/ComboBox.tsx +++ b/packages/react/src/components/ComboBox/ComboBox.tsx @@ -13,6 +13,7 @@ import React, { useEffect, useState, useRef, + useMemo, forwardRef, type ReactNode, type ComponentType, @@ -655,6 +656,15 @@ const ComboBox = forwardRef( (helperText && !isFluid && helperTextId) || undefined; + const menuProps = useMemo( + () => + getMenuProps({ + 'aria-label': deprecatedAriaLabel || ariaLabel, + ref: autoAlign ? refs.setFloating : null, + }), + [autoAlign, deprecatedAriaLabel, ariaLabel] + ); + return (
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id + accumsan augue. Phasellus consequat augue vitae tellus tincidunt + posuere. Curabitur justo urna, consectetur vel elit iaculis, ultrices + condimentum risus. Nulla facilisi. Etiam venenatis molestie tellus. + Quisque consectetur non risus eu rutrum.{' '} +
++ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id + accumsan augue. Phasellus consequat augue vitae tellus tincidunt + posuere. Curabitur justo urna, consectetur vel elit iaculis, ultrices + condimentum risus. Nulla facilisi. Etiam venenatis molestie tellus. + Quisque consectetur non risus eu rutrum.{' '} +
+ {args.hasScrollingContent && ( <>diff --git a/packages/styles/scss/components/modal/_modal.scss b/packages/styles/scss/components/modal/_modal.scss index 65bb53799dfd..bd79cccfd024 100644 --- a/packages/styles/scss/components/modal/_modal.scss +++ b/packages/styles/scss/components/modal/_modal.scss @@ -320,6 +320,11 @@ linear-gradient(to top, $layer 0, 2px, transparent 2px); } + //removing mask image in case we have dropdown in modal + .#{$prefix}--modal-scroll-content:has(.#{$prefix}--dropdown--autoalign) { + mask-image: none; + } + // Required so overflow-indicator disappears at end of content .#{$prefix}--modal-scroll-content > *:last-child { margin-block-end: $spacing-06;