typography: remove module css
This commit is contained in:
parent
9d720d31b4
commit
456cfdfbb0
4 changed files with 12 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
|||
import { JSX, ParentComponent, splitProps, type Ref } from "solid-js";
|
||||
import { Dynamic } from "solid-js/web";
|
||||
import typography from "./typography.module.css";
|
||||
import { mergeClass } from "../utils";
|
||||
import "./typography.css";
|
||||
|
||||
type AnyElement = keyof JSX.IntrinsicElements | ParentComponent<any>;
|
||||
|
||||
|
@ -40,13 +39,11 @@ export function Typography<T extends AnyElement>(
|
|||
"class",
|
||||
"typography",
|
||||
]);
|
||||
const classes = () =>
|
||||
mergeClass(managed.class, typography[managed.typography]);
|
||||
return (
|
||||
<Dynamic
|
||||
ref={managed.ref}
|
||||
component={managed.component ?? "span"}
|
||||
class={classes()}
|
||||
class={`${managed.class} ${managed.typography}`}
|
||||
{...passthough}
|
||||
></Dynamic>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue