Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ This project does _not_ adhere to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
every new version is a new major version.

## 235.0.0 - 2025-10-30

### Added

- `Overlay` component now supports a `className` prop for custom styling of the
content.

## 234.0.0 - 2025-10-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
"version": "234.0.0",
"version": "235.0.0",
"description": "Shared commodities for developing pc-nrfconnect-* packages",
"repository": {
"type": "git",
Expand Down
8 changes: 7 additions & 1 deletion src/Overlay/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import React, { useState } from 'react';
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
import Tooltip from 'react-bootstrap/Tooltip';

import classNames from '../utils/classNames';

import './overlay.scss';

export default ({
Expand All @@ -20,6 +22,7 @@ export default ({
tooltipId,
placement = 'bottom-start',
tooltipChildren,
className,
}: {
keepShowingOnHoverTooltip?: boolean;
children: React.ReactNode;
Expand All @@ -38,6 +41,7 @@ export default ({
| 'left'
| 'left-start';
tooltipChildren: React.ReactNode;
className?: string;
}) => {
const [show, setShow] = useState<boolean>();

Expand Down Expand Up @@ -65,7 +69,9 @@ export default ({
</Tooltip>
}
>
<div className="tw-cursor-help">{children}</div>
<div className={classNames('tw-cursor-help', className)}>
{children}
</div>
</OverlayTrigger>
);
};