@lumx/react 3.6.3-alpha.1 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@juggle/resize-observer": "^3.2.0",
10
- "@lumx/core": "^3.6.3-alpha.1",
11
- "@lumx/icons": "^3.6.3-alpha.1",
10
+ "@lumx/core": "^3.6.3",
11
+ "@lumx/icons": "^3.6.3",
12
12
  "@popperjs/core": "^2.5.4",
13
13
  "body-scroll-lock": "^3.1.5",
14
14
  "classnames": "^2.3.2",
@@ -112,5 +112,5 @@
112
112
  "build:storybook": "storybook build"
113
113
  },
114
114
  "sideEffects": false,
115
- "version": "3.6.3-alpha.1"
115
+ "version": "3.6.3"
116
116
  }
@@ -79,6 +79,12 @@ describe(`<${Notification.displayName}>`, () => {
79
79
  expect(notification).toBeInTheDocument();
80
80
  });
81
81
 
82
+ it('should forward styles', () => {
83
+ const { notification } = setup({ style: { color: 'red' } });
84
+ expect(notification).toBeInTheDocument();
85
+ expect(notification).toHaveStyle('color: red');
86
+ });
87
+
82
88
  // Common tests suite.
83
89
  commonTestsSuiteRTL(setup, {
84
90
  baseClassName: CLASSNAME,
@@ -76,6 +76,7 @@ export const Notification: Comp<NotificationProps, HTMLDivElement> = forwardRef(
76
76
  type,
77
77
  zIndex,
78
78
  usePortal,
79
+ style,
79
80
  ...forwardedProps
80
81
  } = props;
81
82
  if (!DOCUMENT) {
@@ -114,7 +115,7 @@ export const Notification: Comp<NotificationProps, HTMLDivElement> = forwardRef(
114
115
  }),
115
116
  )}
116
117
  onClick={onClick}
117
- style={{ zIndex }}
118
+ style={{ ...style, zIndex }}
118
119
  >
119
120
  <div className={`${CLASSNAME}__icon`}>
120
121
  <Icon icon={icon} size={Size.s} />