Skip to content

Commit 357a8e6

Browse files
author
onesine
committed
Update border color dark mode
1 parent 8c66cd2 commit 357a8e6

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

dist/index.cjs.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.esm.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Datepicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const Datepicker: React.FC<Props> = ({primaryColor = "blue", value = null, onCha
209209
<div className="transition-all ease-out duration-300 absolute mt-[1px] text-sm lg:text-xs 2xl:text-sm translate-y-4 opacity-0 hidden" ref={calendarContainerRef}>
210210
<Arrow ref={arrowRef}/>
211211

212-
<div className="mt-2.5 shadow-sm border border-gray-300 px-1 py-0.5 bg-white dark:bg-slate-800 dark:text-white rounded-lg">
212+
<div className="mt-2.5 shadow-sm border border-gray-300 px-1 py-0.5 bg-white dark:bg-slate-800 dark:text-white dark:border-slate-600 rounded-lg">
213213
<div className="flex flex-col lg:flex-row py-2">
214214

215215
{showShortcuts && (

src/components/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Input: React.FC = () => {
1717
const getClassName = useCallback(() => {
1818
const border = BORDER_COLOR.focus[primaryColor as keyof typeof BORDER_COLOR.focus];
1919
const ring = RING_COLOR["second-focus"][primaryColor as keyof typeof RING_COLOR["second-focus"]];
20-
return `transition-all duration-300 py-2.5 pl-4 pr-14 w-full border-gray-300 dark:bg-slate-800 dark:text-white/80 rounded-lg tracking-wide font-light text-sm placeholder-gray-400 bg-white focus:ring ${border} ${ring}`;
20+
return `transition-all duration-300 py-2.5 pl-4 pr-14 w-full border-gray-300 dark:bg-slate-800 dark:text-white/80 dark:border-slate-600 rounded-lg tracking-wide font-light text-sm placeholder-gray-400 bg-white focus:ring ${border} ${ring}`;
2121
}, [primaryColor]);
2222

2323
const handleInputChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {

src/components/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const DoubleChevronRightIcon: React.FC<IconProps> = ({className = "w-6 h-
6666

6767
export const Arrow = React.forwardRef< HTMLDivElement, {} >((props, ref) => {
6868
return (
69-
<div ref={ref} className="absolute z-20 h-4 w-4 rotate-45 mt-0.5 ml-[1.2rem] border-l border-t border-gray-300 bg-white dark:bg-slate-800"/>
69+
<div ref={ref} className="absolute z-20 h-4 w-4 rotate-45 mt-0.5 ml-[1.2rem] border-l border-t border-gray-300 bg-white dark:bg-slate-800 dark:border-slate-600"/>
7070
);
7171
});
7272

0 commit comments

Comments
 (0)