diff --git a/app/react/components/BoxSelector/BoxSelectorItem.css b/app/react/components/BoxSelector/BoxSelectorItem.css index 047c7b547..668551eac 100644 --- a/app/react/components/BoxSelector/BoxSelectorItem.css +++ b/app/react/components/BoxSelector/BoxSelectorItem.css @@ -73,6 +73,7 @@ .box-selector-item input[type='radio']:checked + label { @apply bg-blue-2 border-blue-6; @apply th-dark:bg-blue-10 th-dark:border-blue-7; + @apply th-highcontrast:bg-blue-10 th-highcontrast:border-blue-7; background-image: url(../../../assets/ico/checked.svg); background-repeat: no-repeat; @@ -90,9 +91,10 @@ } .box-selector-item.limited.business label, -.box-selector-item.limited.business input[type='radio']:checked + label { +.box-selector-item.limited.business input[type='radio'] + label { @apply border-warning-7 bg-warning-1 text-black; - @apply th-dark:bg-warning-3; + @apply th-dark:bg-warning-8 th-dark:bg-opacity-10; + @apply th-highcontrast:bg-warning-8 th-highcontrast:bg-opacity-10; } .boxselector_img_container { @@ -128,4 +130,5 @@ .box-selector-item p { margin-bottom: 0; + color: var(--text-boxselector-header); } diff --git a/app/react/components/BoxSelector/BoxSelectorItem.tsx b/app/react/components/BoxSelector/BoxSelectorItem.tsx index 19e80e77b..13ec5dcf0 100644 --- a/app/react/components/BoxSelector/BoxSelectorItem.tsx +++ b/app/react/components/BoxSelector/BoxSelectorItem.tsx @@ -44,7 +44,10 @@ export function BoxSelectorItem({ > <> {limitedToBE && ( - + )}
diff --git a/app/react/components/BoxSelector/LimitedToBeIndicator.tsx b/app/react/components/BoxSelector/LimitedToBeIndicator.tsx index 4b4e7d0e0..a4f72b16f 100644 --- a/app/react/components/BoxSelector/LimitedToBeIndicator.tsx +++ b/app/react/components/BoxSelector/LimitedToBeIndicator.tsx @@ -1,16 +1,25 @@ -import { HelpCircle } from 'react-feather'; import ReactTooltip from 'react-tooltip'; +import { HelpCircle } from 'react-feather'; + +import { FeatureId } from '@/portainer/feature-flags/enums'; + +import { getFeatureDetails } from '@@/BEFeatureIndicator/utils'; interface Props { tooltipId: string; + featureId?: FeatureId; } -export function LimitedToBeIndicator({ tooltipId }: Props) { +export function LimitedToBeIndicator({ tooltipId, featureId }: Props) { + const { url } = getFeatureDetails(featureId); + return ( <>
- Pro Feature + + Pro Feature +