Skip to content

Commit

Permalink
fix: UnknownBlockStyle css breaking on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreBClark committed Jul 19, 2022
1 parent 69adca3 commit 0b51036
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions component/lib/components/UnknownBlockStyle.astro
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
---
import { PtBlockComponentProps } from "../types";
import { unknownBlockStyleWarning } from "../warnings";
import "../styles/unknown.css"
const { node, isInline } = Astro.props as PtBlockComponentProps;
const warning = unknownBlockStyleWarning(node.style ?? "normal");
---

<style>
@import "../styles/unknown.css";
</style>
{isInline ? (
<span data-portabletext-unknown="blockstyle">{warning}</span>
) : (
Expand Down

0 comments on commit 0b51036

Please sign in to comment.