mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(sidebar): add dark theme colors [EE-3666] (#7414)
This commit is contained in:
parent
fb3a31a4fd
commit
c3ce4d8b53
83 changed files with 1738 additions and 1200 deletions
35
app/react/components/BoxSelector/LimitedToBeIndicator.tsx
Normal file
35
app/react/components/BoxSelector/LimitedToBeIndicator.tsx
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { HelpCircle } from 'react-feather';
|
||||
import ReactTooltip from 'react-tooltip';
|
||||
|
||||
interface Props {
|
||||
tooltipId: string;
|
||||
}
|
||||
|
||||
export function LimitedToBeIndicator({ tooltipId }: Props) {
|
||||
return (
|
||||
<>
|
||||
<div className="absolute left-0 top-0 w-full">
|
||||
<div className="mx-auto max-w-fit bg-warning-4 rounded-b-lg py-1 px-3 flex gap-1 text-sm items-center">
|
||||
<span className="text-warning-9">Pro Feature</span>
|
||||
<HelpCircle
|
||||
className="feather !text-warning-7"
|
||||
data-tip
|
||||
data-for={tooltipId}
|
||||
tooltip-append-to-body="true"
|
||||
tooltip-placement="top"
|
||||
tooltip-class="portainer-tooltip"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<ReactTooltip
|
||||
className="portainer-tooltip"
|
||||
id={tooltipId}
|
||||
place="top"
|
||||
delayHide={1000}
|
||||
>
|
||||
Business Edition feature. <br />
|
||||
This feature is currently limited to Business Edition users only.
|
||||
</ReactTooltip>
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue