diff --git a/src/Common/Upload/Upload.tsx b/src/Common/Upload/Upload.tsx index 3feb4fdfd..70dfe1930 100644 --- a/src/Common/Upload/Upload.tsx +++ b/src/Common/Upload/Upload.tsx @@ -50,7 +50,7 @@ export const Upload: FunctionComponent = ({ const title = label + " to upload"; return (
- {label} + {label} {tooltip && {tooltip}} diff --git a/src/Explorer/Controls/CollapsiblePanel/CollapsibleSectionComponent.tsx b/src/Explorer/Controls/CollapsiblePanel/CollapsibleSectionComponent.tsx index 3f0fa6d2c..0f7eec239 100644 --- a/src/Explorer/Controls/CollapsiblePanel/CollapsibleSectionComponent.tsx +++ b/src/Explorer/Controls/CollapsiblePanel/CollapsibleSectionComponent.tsx @@ -58,7 +58,7 @@ export class CollapsibleSectionComponent extends React.Component - + {this.props.tooltipContent && ( { event.stopPropagation(); this.props.onDelete(); diff --git a/src/Explorer/Controls/FullTextSeach/FullTextPoliciesComponent.tsx b/src/Explorer/Controls/FullTextSeach/FullTextPoliciesComponent.tsx index 8972791ce..959cdc998 100644 --- a/src/Explorer/Controls/FullTextSeach/FullTextPoliciesComponent.tsx +++ b/src/Explorer/Controls/FullTextSeach/FullTextPoliciesComponent.tsx @@ -33,6 +33,7 @@ export interface FullTextPolicyData { const labelStyles = { root: { fontSize: 12, + color: "var(--colorNeutralForeground1)" }, }; @@ -222,7 +223,31 @@ export const FullTextPoliciesComponent: React.FunctionComponent ))} - + Add full text path diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ComputedPropertiesComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ComputedPropertiesComponent.tsx index bb277bd21..5160a768b 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ComputedPropertiesComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ComputedPropertiesComponent.tsx @@ -116,7 +116,7 @@ export class ComputedPropertiesComponent extends React.Component< {unsavedEditorWarningMessage("computedProperties")} )} - + {"Learn more"} diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx index 1257d4a65..2f7d23600 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ContainerPolicyComponent.tsx @@ -102,11 +102,57 @@ export const ContainerPolicyComponent: React.FC = return (
- + {isVectorSearchEnabled && ( @@ -128,7 +174,7 @@ export const ContainerPolicyComponent: React.FC = {isFullTextSearchEnabled && ( @@ -144,7 +190,27 @@ export const ContainerPolicyComponent: React.FC = ) : ( { checkAndSendFullTextPolicyToSettings({ defaultLanguage: getFullTextLanguageOptions()[0].key as never, diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/PartitionKeyComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/PartitionKeyComponent.tsx index 7c2c42663..2a32d8c1d 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/PartitionKeyComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/PartitionKeyComponent.tsx @@ -191,7 +191,7 @@ export const PartitionKeyComponent: React.FC = ({ Learn more - + To change the partition key, a new destination container must be created or an existing destination container selected. Data will then be copied to the destination container. diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx index a0b85cabf..591e1f137 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx @@ -65,7 +65,7 @@ export const ThroughputBucketsComponent: FC = ( return ( - + {throughputBuckets?.map((bucket) => ( @@ -77,7 +77,14 @@ export const ThroughputBucketsComponent: FC = ( onChange={(newValue) => handleBucketChange(bucket.id, newValue)} showValue={false} label={`Bucket ${bucket.id}${bucket.id === 1 ? " (Data Explorer Query Bucket)" : ""}`} - styles={{ root: { flex: 2, maxWidth: 400 } }} + styles={{ + root: { flex: 2, maxWidth: 400 }, + titleLabel: { + color: bucket.maxThroughputPercentage === 100 ? + "var(--colorNeutralForeground4)" : + "var(--colorNeutralForeground1)" + } + }} disabled={bucket.maxThroughputPercentage === 100} /> = ({ if (isAutoscale) { return ( - - + + {estimatedMonthlyCost} ({currency}){iconWithEstimatedCostDisclaimer}:{" "} {currencySign + calculateEstimateNumber(monthlyPrice / 10)} -{" "} @@ -70,7 +70,7 @@ export const CostEstimateText: FunctionComponent = ({ return ( - + Estimated cost ({currency}){iconWithEstimatedCostDisclaimer}:{" "} {currencySign + calculateEstimateNumber(hourlyPrice)} hourly /{" "} diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.less b/src/Explorer/Controls/ThroughputInput/ThroughputInput.less index efcb9467a..816145a00 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.less +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.less @@ -10,9 +10,13 @@ font-size: @mediumFontSize; padding: 0 @LargeSpace 0 @SmallSpace; } +// .throughputInputSpacing{ +// color: "var(--colorNeutralForeground1)"; +// } .throughputInputSpacing > :not(:last-child) { margin-bottom: @DefaultSpace; + color: "var(--colorNeutralForeground1)"; } .capacitycalculator-link:focus { diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index 13a0923f3..13fddab04 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -193,7 +193,7 @@ export const ThroughputInput: FunctionComponent = ({
- + {getThroughputLabelText()} {PricingUtils.getRuToolTipText()} @@ -236,14 +236,14 @@ export const ThroughputInput: FunctionComponent = ({ {isAutoscaleSelected && ( - + Your container throughput will automatically scale up to the maximum value you select, from a minimum of 10% of that value. - + Minimum RU/s The minimum RU/s your container will scale to @@ -260,6 +260,7 @@ export const ThroughputInput: FunctionComponent = ({ display: "flex", alignItems: "center", justifyContent: "center", + color: "var(--colorNeutralForeground1)", }} > {Math.round(throughput / 10).toString()} @@ -272,6 +273,7 @@ export const ThroughputInput: FunctionComponent = ({ fontSize: 12, fontWeight: 400, paddingBottom: 6, + color: "var(--colorNeutralForeground1)" }} > x 10 = @@ -279,7 +281,7 @@ export const ThroughputInput: FunctionComponent = ({ - + Maximum RU/s {getAutoScaleTooltip()} @@ -289,7 +291,7 @@ export const ThroughputInput: FunctionComponent = ({ type="number" styles={{ fieldGroup: { width: 100, height: 27, flexShrink: 0 }, - field: { fontSize: 14, fontWeight: 400 }, + field: { fontSize: 14, fontWeight: 400 , color: "var(--colorNeutralForeground1)"}, }} onChange={(_event, newInput?: string) => onThroughputValueChange(newInput)} step={AutoPilotUtils.autoPilotIncrementStep} @@ -305,7 +307,7 @@ export const ThroughputInput: FunctionComponent = ({ - + Estimate your required RU/s with  = ({ {!isAutoscaleSelected && ( - + Estimate your required RU/s with  = ({ . - + {isDatabase ? "Database" : getCollectionName()} Required RU/s {getAutoScaleTooltip()} diff --git a/src/Explorer/Menus/NotificationConsole/NotificationConsole.less b/src/Explorer/Menus/NotificationConsole/NotificationConsole.less index fb5aed51c..3277e7234 100644 --- a/src/Explorer/Menus/NotificationConsole/NotificationConsole.less +++ b/src/Explorer/Menus/NotificationConsole/NotificationConsole.less @@ -30,11 +30,11 @@ flex-shrink:0; &:hover { - background-color:@NotificationHigh; + background-color: @NotificationHigh; } &:active { - background-color:@NotificationHigh; + background-color: @NotificationHigh; } &:focus { @@ -189,4 +189,44 @@ } } } +} + +// Dark theme specific overrides +body.isDarkMode { + .notificationConsoleContainer { + .notificationConsoleHeader { + background-color: var(--colorNeutralBackground2); + color: var(--colorNeutralForeground1); + + &:hover { + background-color: var(--colorNeutralBackground3); + color: var(--colorNeutralForeground1); + } + + &:active { + background-color: var(--colorNeutralBackground4); + color: var(--colorNeutralForeground1); + } + } + + .notificationConsoleContents { + background-color: var(--colorNeutralBackground1); + color: var(--colorNeutralForeground1); + + .clearNotificationsButton { + border: @ButtonBorderWidth solid var(--colorNeutralStroke1); + + &:hover { + background-color: var(--colorNeutralBackground3); + color: var(--colorNeutralForeground1); + } + + &:active { + border: @ButtonBorderWidth dashed var(--colorBrandForeground1); + background-color: var(--colorBrandBackground); + color: var(--colorNeutralForegroundOnBrand); + } + } + } + } } \ No newline at end of file diff --git a/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx b/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx index 323ed1bca..c0151aae1 100644 --- a/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx +++ b/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.tsx @@ -349,9 +349,14 @@ export class AddCollectionPanel extends React.Component, isChecked: boolean) => this.setState({ isSharedThroughputChecked: isChecked }) @@ -648,7 +653,27 @@ export class AddCollectionPanel extends React.Component {subPartitionKeys.length > 0 && ( - + This feature allows you to partition your data with up to three levels of keys for better data distribution. Requires .NET V3, Java V4 SDK, or preview JavaScript V3 SDK.{" "} diff --git a/src/Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane.tsx b/src/Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane.tsx index 7d619b995..fbe5f8a1a 100644 --- a/src/Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane.tsx +++ b/src/Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane.tsx @@ -135,7 +135,7 @@ export const ChangePartitionKeyPane: React.FC = ({ return ( - + When changing a container’s partition key, you will need to create a destination container with the correct partition key. You may also select an existing destination container.  = ({ Add hierarchical partition key {subPartitionKeys.length > 0 && ( - + This feature allows you to partition your data with up to three levels of keys for better data distribution. Requires .NET V3, Java V4 SDK, or preview JavaScript V3 SDK.{" "} diff --git a/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx b/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx index 6ace63e2e..3a8dc1ee6 100644 --- a/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx +++ b/src/Explorer/Panes/LoadQueryPane/LoadQueryPane.tsx @@ -94,7 +94,14 @@ export const LoadQueryPane: FunctionComponent = (): JSX.Element => { value={selectedFileName} autoFocus readOnly - styles={{ fieldGroup: { width: 300 } }} + styles={{ + fieldGroup: { width: 300, color: "var(--colorNeutralForeground1)" }, + subComponentStyles: { + label: { + root: { color: "var(--colorNeutralForeground1)" } + } + } + }} />