Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remirror buttons #267

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions apps/app/components/rich-text-editor/toolbar/bold.tsx

This file was deleted.

27 changes: 14 additions & 13 deletions apps/app/components/rich-text-editor/toolbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// history
import { RedoButton } from "./redo";
import { UndoButton } from "./undo";
// formats
import { BoldButton } from "./bold";
import { ItalicButton } from "./italic";
import { UnderlineButton } from "./underline";
import { StrikeButton } from "./strike";
// buttons
import {
ToggleBoldButton,
ToggleItalicButton,
ToggleUnderlineButton,
ToggleStrikeButton,
RedoButton,
UndoButton,
} from "@remirror/react";
// headings
import HeadingControls from "./heading-controls";
// list
Expand All @@ -15,17 +16,17 @@ import { UnorderedListButton } from "./unordered-list";
export const RichTextToolbar: React.FC = () => (
<div className="flex items-center gap-y-2 divide-x">
<div className="flex items-center gap-x-1 px-2">
<UndoButton />
<RedoButton />
<UndoButton />
</div>
<div className="px-2">
<HeadingControls />
</div>
<div className="flex items-center gap-x-1 px-2">
<BoldButton />
<ItalicButton />
<UnderlineButton />
<StrikeButton />
<ToggleBoldButton />
<ToggleItalicButton />
<ToggleUnderlineButton />
<ToggleStrikeButton />
</div>
<div className="flex items-center gap-x-1 px-2">
<OrderedListButton />
Expand Down
28 changes: 0 additions & 28 deletions apps/app/components/rich-text-editor/toolbar/italic.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions apps/app/components/rich-text-editor/toolbar/redo.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions apps/app/components/rich-text-editor/toolbar/strike.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/app/components/rich-text-editor/toolbar/underline.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/app/components/rich-text-editor/toolbar/undo.tsx

This file was deleted.

20 changes: 20 additions & 0 deletions apps/app/styles/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,23 @@ img.ProseMirror-separator {
text-decoration: underline;
}
/* end link styling */

/* format buttons styling */
.MuiButtonBase-root {
border: none !important;
border-radius: 0.25rem !important;
padding: 0.25rem !important;
}

.MuiButtonBase-root:hover {
background-color: rgb(229 231 235);
}

.MuiButtonBase-root svg {
fill: #000 !important;
}

.MuiButtonBase-root.Mui-selected {
background-color: rgb(229 231 235) !important;
}
/* end format buttons styling */