@primer/react 0.0.0-20260227023714 → 0.0.0-20260227031401
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/CHANGELOG.md
CHANGED
|
@@ -112,7 +112,10 @@ const AnchoredOverlay = ({
|
|
|
112
112
|
const showXIcon = onClose && variant.narrow === 'fullscreen' && displayCloseButton;
|
|
113
113
|
const XButtonAriaLabelledBy = closeButtonProps['aria-labelledby'];
|
|
114
114
|
const XButtonAriaLabel = closeButtonProps['aria-label'];
|
|
115
|
-
|
|
115
|
+
const {
|
|
116
|
+
className: overlayClassName,
|
|
117
|
+
...restOverlayProps
|
|
118
|
+
} = overlayProps || {};
|
|
116
119
|
return /*#__PURE__*/jsxs("div", {
|
|
117
120
|
className: classes.Wrapper,
|
|
118
121
|
children: [renderAnchor && renderAnchor({
|
|
@@ -137,10 +140,10 @@ const AnchoredOverlay = ({
|
|
|
137
140
|
left: cssAnchorPositioning ? undefined : (position_0 === null || position_0 === void 0 ? void 0 : position_0.left) || 0,
|
|
138
141
|
responsiveVariant: variant.narrow === 'fullscreen' ? 'fullscreen' : undefined,
|
|
139
142
|
anchorSide: cssAnchorPositioning ? undefined : position_0 === null || position_0 === void 0 ? void 0 : position_0.anchorSide,
|
|
140
|
-
className: clsx(className, cssAnchorPositioning ? classes.AnchoredOverlay : undefined),
|
|
143
|
+
className: clsx(className, overlayClassName, cssAnchorPositioning ? classes.AnchoredOverlay : undefined),
|
|
141
144
|
preventOverflow: preventOverflow,
|
|
142
145
|
"data-component": "AnchoredOverlay",
|
|
143
|
-
...
|
|
146
|
+
...restOverlayProps,
|
|
144
147
|
ref: node => {
|
|
145
148
|
if (overlayProps !== null && overlayProps !== void 0 && overlayProps.ref) {
|
|
146
149
|
assignRef(overlayProps.ref, node);
|
package/package.json
CHANGED