Skip to content

Commit

Permalink
refactor: use panda for Slate span
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-C committed Nov 8, 2024
1 parent 6b22a7b commit 35b38d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/components/SlateEditor/plugins/span/Span.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
*
*/

import styled from "@emotion/styled";
import { colors } from "@ndla/core";
import { styled } from "@ndla/styled-system/jsx";

const Span = styled.span`
position: relative;
text-decoration: underline;
text-decoration-color: ${colors.brand.tertiary};
`;

export default Span;
export const Span = styled("span", {
base: {
position: "relative",
textDecoration: "underline",
textDecorationThickness: "1px",
textDecorationColor: "stroke.subtle",
},
});
2 changes: 1 addition & 1 deletion src/components/SlateEditor/plugins/span/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { Editor } from "slate";
import { RenderElementProps } from "slate-react";
import Span from "./Span";
import { Span } from "./Span";
import { TYPE_SPAN } from "./types";
import { InlineBugfix } from "../../utils/InlineBugFix";

Expand Down

0 comments on commit 35b38d8

Please sign in to comment.