Skip to content

Commit

Permalink
Use headlessui description without nesting; update PR template
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnetangsu committed Dec 10, 2024
1 parent 48d6a79 commit 6fd2aab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
3. Verify...

# Associated Issues and/or People
- JIRA ticket(s) - GIVCAMP-
- JIRA ticket(s) - DS-
- Other PRs
- Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
- Anyone who should be notified? (`@mention` them here)
2 changes: 1 addition & 1 deletion components/ChangemakerCard/ChangemakerCard.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ export const modalIcon = 'text-white size-26';
export const modalTextWrapper = 'rs-pr-4 rs-pb-6 w-[75ch] max-w-[100vw] md:max-w-full';
export const modalHeader = 'rs-mb-3 border-l-[1.2rem] md:border-l-[1.8rem] border-digital-red-light';
export const modalHeading = 'mb-02em leading-tight ml-22 md:ml-40 2xl:ml-43 type-3 font-serif';
export const modalSubhead = 'ml-22 md:ml-40 2xl:ml-43';
export const modalSubhead = 'block font-semibold big-paragraph leading-tight ml-22 md:ml-40 2xl:ml-43';
export const nestedBloksWrapper = 'rs-pl-4';
6 changes: 3 additions & 3 deletions components/ChangemakerCard/ChangemakerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ export const ChangemakerCard = ({
/>
</button>
<div className={styles.modalTextWrapper}>
<div className={styles.modalHeader}>
<header className={styles.modalHeader}>
<DialogTitle className={styles.modalHeading}>{heading}</DialogTitle>
{subheading &&
<Description className={styles.modalSubhead}>{subheading}</Description>
<Description as="span" className={styles.modalSubhead}>{subheading}</Description>
}
</div>
</header>
<div className={styles.nestedBloksWrapper}>{children}</div>
</div>
</div>
Expand Down

0 comments on commit 6fd2aab

Please sign in to comment.