Skip to content

Commit

Permalink
Fixed empty headings on paragraph types
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 30, 2024
1 parent edc9c99 commit 769830c
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 167 deletions.
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
},
"dependencies": {
"@heroicons/react": "^2.1.5",
"@mui/base": "5.0.0-beta.60",
"@mui/base": "5.0.0-beta.61",
"@next/third-parties": "15.0.2",
"@tailwindcss/container-queries": "^0.1.1",
"@types/node": "22.8.2",
"@types/node": "22.8.4",
"@types/react": "18.3.12",
"@types/react-dom": "19.0.0-rc.1",
"algoliasearch": "^5.11.0",
"algoliasearch": "^5.12.0",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"decanter": "^7.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const EntityParagraph = async ({paragraph, ...props}: Props) => {
className={twMerge("centered mb-20 flex flex-col gap-10 xl:max-w-[980px]", props.className)}
aria-labelledby={EntityWrapper === "section" ? paragraph.id : undefined}
>
{behaviors.stanford_teaser?.heading_behavior !== "remove" && (
{paragraph.suEntityHeadline && behaviors.stanford_teaser?.heading_behavior !== "remove" && (
<H2
id={paragraph.id}
className={twMerge(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ListParagraph = async ({paragraph, ...props}: Props) => {
className={twMerge("centered mb-20 flex flex-col gap-10 xl:max-w-[980px]", props.className)}
aria-labelledby={ListWrapper === "section" ? paragraph.id : undefined}
>
{behaviors.list_paragraph?.heading_behavior !== "remove" && (
{paragraph.suListHeadline && behaviors.list_paragraph?.heading_behavior !== "remove" && (
<H2
id={paragraph.id}
className={twMerge("text-center", behaviors.list_paragraph?.heading_behavior === "hide" && "sr-only")}
Expand Down
Loading

0 comments on commit 769830c

Please sign in to comment.