Skip to content

Commit

Permalink
🐛 fix: show correct colors in light-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Jan 31, 2022
1 parent 688ab4c commit beeeca1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { ThreeDots } from "react-bootstrap-icons";
import { useTranslations } from "next-intl";
import { Button } from "components/Button";
Expand Down Expand Up @@ -28,7 +27,7 @@ export function OptionsDropdown({ values }: { values: TValue[] }) {
className="dropdown-right"
trigger={
<Button className="flex items-center justify-center w-8 h-8">
<ThreeDots width={15} height={15} className="text-gray-700 dark:text-gray-300" />
<ThreeDots width={15} height={15} className="text-gray-300" />
</Button>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export function Editor({ isReadonly, value, onChange }: EditorProps) {
<Slate editor={editor} value={value as Descendant[]} onChange={handleChange}>
{isReadonly ? null : <Toolbar />}
<Editable
spellCheck="false"
autoComplete="off"
readOnly={isReadonly}
renderLeaf={renderLeaf}
renderElement={renderElement}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function BlockButton({ format, icon }: ButtonProps) {
title={format}
type="button"
variant={isActive ? null : "default"}
className={classNames(isActive && "dark:bg-neutral-700")}
className={classNames(isActive && "text-white bg-neutral-700")}
onClick={() => {
toggleBlock(editor, format);
}}
Expand All @@ -89,7 +89,7 @@ const MarkButton = ({ format, icon }: ButtonProps) => {
title={format}
type="button"
variant={isActive ? null : "default"}
className={classNames(isActive && "dark:bg-neutral-700")}
className={classNames(isActive && "text-white bg-neutral-700")}
onClick={() => {
toggleMark(editor, format);
}}
Expand Down

0 comments on commit beeeca1

Please sign in to comment.