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

Revert "CSS namespaces" #65

Merged
merged 1 commit into from
Nov 27, 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
2 changes: 0 additions & 2 deletions src/EditorComposer.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

@import 'https://fonts.googleapis.com/css?family=Reenie+Beanie';

@namespace "Verbum-EditorComposer";

.editor-shell {
margin: 20px auto;
border-radius: 2px;
Expand Down
4 changes: 1 addition & 3 deletions src/EditorComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const EditorComposer = ({ children, initialEditorState }: IEditorComposer) => {
return (
<LexicalComposer initialConfig={initialConfig}>
<I18nextProvider i18n={i18n}>
<svg xmlns="Verbum-EditorComposer">
<div className="editor-shell">{children}</div>
</svg>
<div className="editor-shell">{children}</div>
</I18nextProvider>
</LexicalComposer>
);
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/ToolbarPlugin/ToolbarPlugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*
*
*/
@namespace 'Verbum-toolbar';

.ToolbarPlugin__dialogActions {
display: flex;
flex-direction: row;
Expand Down
43 changes: 20 additions & 23 deletions src/plugins/ToolbarPlugin/ToolbarPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,29 +265,26 @@ const ToolbarPlugin = ({
blockType,
}}
>
<svg xmlns="Verbum-toolbar">
<div className="toolbar">
<UndoButton />
<RedoButton />
<Divider />
{supportedBlockTypes.has(blockType) &&
activeEditor === initialEditor && (
<>
<BlockFormatDropdown />
<Divider />
</>
)}
{blockType === 'code' ? (
<>
<CodeLanguageDropdown />
<Divider />
{alignExists && AlignComponent}
</>
) : (
<>{children}</>
)}
</div>
</svg>
<div className="toolbar">
<UndoButton />
<RedoButton />
<Divider />
{supportedBlockTypes.has(blockType) && activeEditor === initialEditor && (
<>
<BlockFormatDropdown />
<Divider />
</>
)}
{blockType === 'code' ? (
<>
<CodeLanguageDropdown />
<Divider />
{alignExists && AlignComponent}
</>
) : (
<>{children}</>
)}
</div>
</ToolbarContext.Provider>
);
};
Expand Down
Loading