From 1c2ae47dce798bfe56d5a8641864ce3ca30814ac Mon Sep 17 00:00:00 2001 From: Scott Weber Date: Thu, 4 Aug 2022 19:41:36 -0400 Subject: [PATCH] [NO-TICKET] Doc site design updates (#2019) * Update table of contents spacing * Update doc site header and left nav header * Update style and prop tables * Set the font size for h4s too * Fix a problem with a markdown header that I fixed before but probably got clobbered Co-authored-by: Patrick Wolfert --- .../src/components/ComponentThemeOptions.tsx | 2 +- .../docs/src/components/DocSiteNavigation.tsx | 9 ++++-- packages/docs/src/components/PageHeader.tsx | 6 ++-- packages/docs/src/components/PropTable.tsx | 2 +- .../docs/src/components/TableOfContents.tsx | 2 +- .../styles/components/tableOfContents.scss | 4 ++- packages/docs/src/styles/pages/layout.scss | 29 +++++++++++++++++++ 7 files changed, 44 insertions(+), 10 deletions(-) diff --git a/packages/docs/src/components/ComponentThemeOptions.tsx b/packages/docs/src/components/ComponentThemeOptions.tsx index 659a15f164..d16b574000 100644 --- a/packages/docs/src/components/ComponentThemeOptions.tsx +++ b/packages/docs/src/components/ComponentThemeOptions.tsx @@ -66,7 +66,7 @@ const ComponentThemeOptions = ({ theme, componentname }: ComponentThemeOptionsPr componentname = componentname.toLowerCase(); const currentTheme = componentThemes[theme]; const componentOptions = ( - +
Sass variables for {componentname}{' '} diff --git a/packages/docs/src/components/DocSiteNavigation.tsx b/packages/docs/src/components/DocSiteNavigation.tsx index ef98bd3cd4..97638fde00 100644 --- a/packages/docs/src/components/DocSiteNavigation.tsx +++ b/packages/docs/src/components/DocSiteNavigation.tsx @@ -95,9 +95,12 @@ const DocSiteNavigation = ({ location }: DocSiteNavProps) => { return (
+
React Properties Documentation diff --git a/packages/docs/src/components/TableOfContents.tsx b/packages/docs/src/components/TableOfContents.tsx index ab52b7730a..aa440ea7d0 100644 --- a/packages/docs/src/components/TableOfContents.tsx +++ b/packages/docs/src/components/TableOfContents.tsx @@ -23,7 +23,7 @@ export const TableOfContentsList = ({ items, level, className = '' }: TableOfCon : 'c-table-of-contents__list-item'; return ( -