Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit a080fd0

Browse files
authored
Merge pull request #822 from sebgroup/develop
Next release
2 parents 057efb3 + 6fe41a0 commit a080fd0

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ This is a set of react components some of which are based on SEB's bootstrap. Th
1515
- The package sourcecode: [Github Source Code](https://github.com/sebgroup/react-components)
1616
- NPM package: [@sebgroup/react-components](https://www.npmjs.com/package/@sebgroup/react-components)
1717

18+
---
19+
20+
#### :rotating_light: NOTICE: `@sebgroup/react-components` support has officially ended as of March 2023.
21+
22+
**What does this mean?**
23+
24+
The code will remain accessible on GitHub and [npm](https://www.npmjs.com/package/@sebgroup/react-components). This website will remain here indefinitely.
25+
26+
The project will be in an archived state, meaning that no new development will be made _unless_:
27+
28+
- it is meant for fixing critical and common-case bugs on the already existing components
29+
30+
**Where do I go from here?**
31+
32+
Go Green! Visit the [official Green documentation](https://sebgroup.github.io/green/latest/chlorophyll) to get started with SEB's new design system.
33+
34+
---
35+
1836
## Minimum requirements
1937

2038
This version of components has been developed with:

lib/src/Dropdown/Dropdown.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export type DropdownProps = Omit<JSX.IntrinsicElements["select"], "value"> & {
4949
text?: DropdownText;
5050
/** Indicator for error, warning or success */
5151
indicator?: Indicator;
52+
/** Props for (ul) element */
53+
itemWrapperProps?: JSX.IntrinsicElements["ul"];
5254
};
5355

5456
const bodyScrollOptions: BodyScrollOptions = { reserveScrollBarGap: true };
@@ -58,7 +60,7 @@ const safeWindow: Window | null = typeof window !== "undefined" ? window : null;
5860
const isMobile: boolean = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(safeWindow?.navigator?.userAgent);
5961

6062
export const Dropdown: React.FC<DropdownProps> = React.forwardRef(
61-
({ wrapperProps = {}, text = {}, onMultipleChange, clearable, indicator, isAllSelectable = true, searchable, selectedLabel, ...props }: DropdownProps, ref) => {
63+
({ wrapperProps = {}, text = {}, onMultipleChange, clearable, indicator, isAllSelectable = true, searchable, selectedLabel, itemWrapperProps, ...props }: DropdownProps, ref) => {
6264
const { multiple, onChange } = props;
6365
const [dropdownId] = React.useState<string>(randomId("dd-"));
6466
const [toggleId] = React.useState<string>(randomId("ddt-"));
@@ -419,6 +421,7 @@ export const Dropdown: React.FC<DropdownProps> = React.forwardRef(
419421
style={{ ...menuStyle }}
420422
tabIndex={-1}
421423
onKeyDown={onDropDownKeyDown}
424+
{...itemWrapperProps}
422425
>
423426
{searchable && (
424427
<input

0 commit comments

Comments
 (0)