diff --git a/components/ContactForm/ContactForm.module.css b/components/ContactForm/ContactForm.module.css index dc3deae1..3d4233b1 100644 --- a/components/ContactForm/ContactForm.module.css +++ b/components/ContactForm/ContactForm.module.css @@ -62,8 +62,11 @@ background-color: var(--link); } -.btn_submit .send_icon { - margin-right: var(--rounded-edge-radius); +.send_icon { + width: 1.2em; + height: 1.2em; + vertical-align: -0.2em; + margin-right: 0.4em; } .result_icon { diff --git a/components/Figure/Figure.tsx b/components/Figure/Figure.tsx index 2cf0f296..45a43ec6 100644 --- a/components/Figure/Figure.tsx +++ b/components/Figure/Figure.tsx @@ -9,7 +9,6 @@ import styles from "./Figure.module.css"; type Props = Omit & PropsWithChildren<{ alt?: string; // becomes optional -- pulled from plaintext-ified caption if missing - className?: string; }>; const Figure = ({ children, alt, className, ...imageProps }: Props) => { diff --git a/components/Heading/Heading.tsx b/components/Heading/Heading.tsx index 79d377b0..f98f99ab 100644 --- a/components/Heading/Heading.tsx +++ b/components/Heading/Heading.tsx @@ -5,8 +5,6 @@ import styles from "./Heading.module.css"; type Props = HTMLAttributes & { as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; - id?: string; - className?: string; }; const Heading = ({ as: Component, id, className, children, ...rest }: Props) => { diff --git a/components/HorizontalRule/HorizontalRule.tsx b/components/HorizontalRule/HorizontalRule.tsx index d40ca93b..5df5a204 100644 --- a/components/HorizontalRule/HorizontalRule.tsx +++ b/components/HorizontalRule/HorizontalRule.tsx @@ -1,10 +1,9 @@ import classNames from "classnames"; +import type { HTMLAttributes } from "react"; import styles from "./HorizontalRule.module.css"; -type Props = { - className?: string; -}; +type Props = HTMLAttributes; const HorizontalRule = ({ className, ...rest }: Props) =>
; diff --git a/components/IFrame/IFrame.tsx b/components/IFrame/IFrame.tsx index 245368b8..5129989f 100644 --- a/components/IFrame/IFrame.tsx +++ b/components/IFrame/IFrame.tsx @@ -1,15 +1,13 @@ import classNames from "classnames"; +import { IframeHTMLAttributes } from "react"; import styles from "./IFrame.module.css"; -type Props = { - src: string; - title?: string; +type Props = IframeHTMLAttributes & { height: number; width?: number; // defaults to 100% allowScripts?: boolean; noScroll?: boolean; - className?: string; }; const IFrame = ({ src, title, height, width, allowScripts, noScroll, className, ...rest }: Props) => ( diff --git a/components/Link/Link.tsx b/components/Link/Link.tsx index 3bd63fda..63b911a0 100644 --- a/components/Link/Link.tsx +++ b/components/Link/Link.tsx @@ -9,10 +9,7 @@ import styles from "./Link.module.css"; export type Props = Omit, "href"> & LinkProps & PropsWithChildren<{ - target?: string; - rel?: string; forceNewWindow?: boolean; - className?: string; }>; const CustomLink = ({ diff --git a/components/List/List.tsx b/components/List/List.tsx index 634605fc..4a493e5d 100644 --- a/components/List/List.tsx +++ b/components/List/List.tsx @@ -1,20 +1,16 @@ import classNames from "classnames"; -import type { PropsWithChildren } from "react"; +import type { HTMLAttributes } from "react"; import styles from "./List.module.css"; -type Props = PropsWithChildren<{ - className?: string; -}>; - -export const UnorderedList = ({ className, ...rest }: Props) => ( +export const UnorderedList = ({ className, ...rest }: HTMLAttributes) => (
    ); -export const OrderedList = ({ className, ...rest }: Props) => ( +export const OrderedList = ({ className, ...rest }: HTMLAttributes) => (
      ); // TODO: this is based on good faith that the children are all `
    1. `s... -export const ListItem = ({ className, ...rest }: Props) => ( +export const ListItem = ({ className, ...rest }: HTMLAttributes) => (
    2. );