Skip to content

Commit 2453fc1

Browse files
committed
Fix dark mode
1 parent 1e517e2 commit 2453fc1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/frappe-ui-react/src/components/circularProgressBar/circularProgressBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const CircularProgressBar: React.FC<CircularProgressBarProps> = ({
176176

177177
return (
178178
<div
179-
className={`progressbar ${completedClass} ${variantClass}`}
179+
className={`progressbar ${completedClass} ${variantClass} text-ink-gray-3`}
180180
role="progressbar"
181181
aria-valuenow={progress}
182182
aria-valuemin={0}

packages/frappe-ui-react/src/components/dropdown/dropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ const Dropdown: React.FC<DropdownProps> = ({
4848
const getBackgroundColor = (item: DropdownOption) =>
4949
item.theme === "red"
5050
? "focus:bg-surface-red-3 data-[highlighted]:bg-surface-red-3 data-[state=open]:bg-surface-red-3"
51-
: "focus:bg-surface-gray-3 data-[highlighted]:bg-surface-gray-3 data-[state=open]:bg-surface-gray-3";
51+
: "focus:bg-surface-gray-4 data-[highlighted]:bg-surface-gray-4 data-[state=open]:bg-surface-gray-4";
5252

5353
const getSubmenuBackgroundColor = (item: DropdownOption) =>
5454
getBackgroundColor(item) +
5555
" data-[state=open]:bg-surface-" +
56-
(item.theme === "red" ? "red-3" : "gray-3");
56+
(item.theme === "red" ? "red-3" : "gray-4");
5757

5858
const normalizeDropdownItem = useCallback(
5959
(option: DropdownOption): DropdownOption => {

packages/frappe-ui-react/src/components/toast/toast.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const ToastComponent: React.FC<ToastProps> = ({
1919
switch (type) {
2020
case "success":
2121
return (
22-
<CircleCheck className="flex-shrink-0 size-4 text-ink-green-2" />
22+
<CircleCheck className="flex-shrink-0 size-4 text-ink-green-3" />
2323
);
2424
case "warning":
2525
return (
26-
<AlertTriangle className="flex-shrink-0 size-4 text-ink-amber-2" />
26+
<AlertTriangle className="flex-shrink-0 size-4 text-ink-amber-3" />
2727
);
2828
case "error":
29-
return <Info className="flex-shrink-0 size-4 text-ink-red-2" />;
29+
return <Info className="flex-shrink-0 size-4 text-ink-red-4" />;
3030
default:
3131
return null;
3232
}

packages/frappe-ui-react/src/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ p,
1212
span,
1313
div {
1414
-webkit-font-smoothing: antialiased;
15-
font-variation-settings: 'opsz';
15+
font-variation-settings: 'opsz' 24;
1616
}
1717

1818
button,

0 commit comments

Comments
 (0)