+
)}
@@ -174,11 +174,7 @@ export const Dropdown = ({
);
return (
-
+
{isOpen ? renderExpandedDropdown() : renderCollapsedDropdown()}
);
diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx
index b3fd2aac42..919f5d59cc 100644
--- a/src/components/Icon/index.tsx
+++ b/src/components/Icon/index.tsx
@@ -23,7 +23,7 @@ export type IconKind =
interface IconProps {
kind: IconKind;
- className?: string;
+ class?: string;
}
/**
* Renders an icon
@@ -39,7 +39,7 @@ export const Icon = (props: IconProps) => {
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 61 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 22 12"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 7 12"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 18 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
@@ -186,7 +186,7 @@ export const Icon = (props: IconProps) => {
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 22 12"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 22 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 21 21"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 21 11"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 22 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 28 28"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 17 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 34 34"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 22 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
{
viewBox="0 0 20 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={props.className}
+ class={props.class}
>
- {variant !== "bare" ? : null}
+ {variant !== "bare" ? : null}
diff --git a/src/components/Nav/MainNavLinks.tsx b/src/components/Nav/MainNavLinks.tsx
index 0e3b628535..77371c4f31 100644
--- a/src/components/Nav/MainNavLinks.tsx
+++ b/src/components/Nav/MainNavLinks.tsx
@@ -81,7 +81,7 @@ export const MainNavLinks = ({
{
@@ -80,4 +80,4 @@ const { config } = Astro.props;
}
}
});
-
\ No newline at end of file
+
diff --git a/src/components/PageHeader/ItemPage.astro b/src/components/PageHeader/ItemPage.astro
index 6213d90494..97ec11cc11 100644
--- a/src/components/PageHeader/ItemPage.astro
+++ b/src/components/PageHeader/ItemPage.astro
@@ -22,12 +22,12 @@ if (titleAuthor) {
{fullTitle}
diff --git a/src/components/PaginationNav/index.astro b/src/components/PaginationNav/index.astro
index da0d964a21..dc5e191e21 100644
--- a/src/components/PaginationNav/index.astro
+++ b/src/components/PaginationNav/index.astro
@@ -23,7 +23,7 @@ const numPages = getPaginationMax(itemsPerPage, maxNumItems);
{i + 1}
diff --git a/src/components/ReferenceDirectoryWithFilter/index.tsx b/src/components/ReferenceDirectoryWithFilter/index.tsx
index 5ce59bcd73..664492b711 100644
--- a/src/components/ReferenceDirectoryWithFilter/index.tsx
+++ b/src/components/ReferenceDirectoryWithFilter/index.tsx
@@ -116,13 +116,13 @@ export const ReferenceDirectoryWithFilter = ({
{entry.data.beta && (
)}
{entry.data.deprecated && (
)}
@@ -160,10 +160,10 @@ export const ReferenceDirectoryWithFilter = ({
id={subcat.name}
href={`/reference/${category.name === "p5.sound" ? "p5.sound" : "p5"}/${subcat.name}/`}
>
- {subcat.name}
+ {subcat.name}
) : (
-
+
{subcat.name}
)}
@@ -227,7 +227,7 @@ export const ReferenceDirectoryWithFilter = ({
onClick={clearInput}
aria-label="Clear search input"
>
-
+
)}
diff --git a/src/components/SearchResults/index.tsx b/src/components/SearchResults/index.tsx
index 97bad3103c..523073f676 100644
--- a/src/components/SearchResults/index.tsx
+++ b/src/components/SearchResults/index.tsx
@@ -28,7 +28,7 @@ const SearchResults = ({
const [isInputEdited, setInputEdited] = useState(false);
const prevIsInputEdited = useRef(isInputEdited);
- // Reset filter and input state when search term changes
+ // Reset filter and input state when search term changes
useEffect(() => {
setCurrentFilter("");
setInputEdited(false);
@@ -81,17 +81,17 @@ const SearchResults = ({
}
return (
-
-
Filter by
-
+
+
Filter by
+
{allUniqueCategoriesForResults.map((category) => (
-
@@ -114,7 +114,7 @@ const SearchResults = ({
if (inputRef.current) {
inputRef.current.value = "";
}
- onSearchChange("")
+ onSearchChange("");
};
const submitInput = () => {
if (inputRef.current) {
@@ -181,11 +181,11 @@ const SearchResults = ({
{uiTranslations[uiTranslationKey(category)]}
-
+
{results
.filter((result) => result.category === category)
.map((result) => (
- -
+
-
{result.title}
))}
@@ -197,12 +197,12 @@ const SearchResults = ({
};
return (
-
+
-
{results.length} results found for
+
{results.length} results found for
{renderBigSearchForm()}
-
+
{renderFilterByOptions()}
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index 76e040a196..d7ab520b21 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -17,7 +17,7 @@ interface Props {
titleAuthor?: string;
titleClass?: string;
subtitle?: string | null;
- className?: string;
+ "class"?: string;
variant?: "root" | "item" | "search" | "homepage";
topic?: PageTopic;
mainContentParentClass?: string;
@@ -30,7 +30,7 @@ const {
titleAuthor,
titleClass = title,
subtitle,
- className = "",
+ class: customClass = "",
variant = "root",
mainContentParentClass = "mx-5 md:mx-lg mt-md",
homepageConfig,
@@ -63,7 +63,7 @@ const headerTopic = topic
---
diff --git a/src/layouts/ContributorDocLayout.astro b/src/layouts/ContributorDocLayout.astro
index 2bb65aa025..97395d8de8 100644
--- a/src/layouts/ContributorDocLayout.astro
+++ b/src/layouts/ContributorDocLayout.astro
@@ -42,7 +42,7 @@ setJumpToState(jumpToState);
variant="item"
subtitle={null}
topic="contribute"
- className="contribute"
+ class="contribute"
>
diff --git a/src/layouts/ExampleLayout.astro b/src/layouts/ExampleLayout.astro
index d976598af0..d2579fee83 100644
--- a/src/layouts/ExampleLayout.astro
+++ b/src/layouts/ExampleLayout.astro
@@ -83,7 +83,7 @@ const { showBanner, englishUrl } = checkTranslationBanner(
subtitle={null}
variant="item"
topic="examples"
- className="example"
+ class="example"
>
{showBanner && }
diff --git a/src/layouts/PeopleLayout.astro b/src/layouts/PeopleLayout.astro
index ea6b3bfed7..6545955be1 100644
--- a/src/layouts/PeopleLayout.astro
+++ b/src/layouts/PeopleLayout.astro
@@ -57,7 +57,7 @@ setJumpToState(null);
-
+
{t("peoplePage", "PageDescription")}
diff --git a/src/layouts/ReferenceItemLayout.astro b/src/layouts/ReferenceItemLayout.astro
index 49fab87dda..e204171477 100644
--- a/src/layouts/ReferenceItemLayout.astro
+++ b/src/layouts/ReferenceItemLayout.astro
@@ -109,7 +109,7 @@ function normalizeP5ReferenceLinks(html: string | undefined): string | undefined
subtitle={null}
variant="item"
topic="reference"
- className="reference-item"
+ class="reference-item"
>
{showBanner && }
diff --git a/src/layouts/TextDetailLayout.astro b/src/layouts/TextDetailLayout.astro
index ff6c268382..ec2b94b5e0 100644
--- a/src/layouts/TextDetailLayout.astro
+++ b/src/layouts/TextDetailLayout.astro
@@ -37,7 +37,7 @@ const { showBanner, englishUrl } = checkTranslationBanner(
title={page.data.title}
variant="item"
topic={pageTopic}
- className={pageTopic}
+ class={pageTopic}
subtitle={null}
>
{showBanner && }
diff --git a/src/layouts/TutorialLayout.astro b/src/layouts/TutorialLayout.astro
index 99cf656f65..fa5273de1c 100644
--- a/src/layouts/TutorialLayout.astro
+++ b/src/layouts/TutorialLayout.astro
@@ -70,7 +70,7 @@ const { showBanner, englishUrl } = checkTranslationBanner(
subtitle={null}
variant="item"
topic="tutorials"
- className="tutorials"
+ class="tutorials"
>
{showBanner && }
{entry.data.authors && By {entry.data.authors?.join(", ")}}