Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUM-253 | add heading size option #66

Merged
merged 17 commits into from
Sep 23, 2024
Merged

Conversation

rebeccahongsf
Copy link
Contributor

@rebeccahongsf rebeccahongsf commented Sep 13, 2024

READY FOR REVIEW

Summary

  • SUM-253 | add heading size option

Review By (Date)

  • When possible

Review Tasks

Setup tasks and/or behavior to test

  1. Review code

Associated Issues and/or People

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
summer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 9:21pm

src/lib/drupal/drupal-jsonapi.d.tsx Outdated Show resolved Hide resolved
src/components/paragraphs/stanford-card/card-paragraph.tsx Outdated Show resolved Hide resolved
src/components/paragraphs/stanford-card/card-paragraph.tsx Outdated Show resolved Hide resolved
src/components/paragraphs/stanford-card/card-paragraph.tsx Outdated Show resolved Hide resolved
src/components/paragraphs/stanford-card/card-paragraph.tsx Outdated Show resolved Hide resolved
const headerTag = headerTagChoice[0]
const headerClasses = headerTagChoice[1]?.replace(".", " ").replace("su-font-splash", "type-3 mb-12") || "mb-12"
const headerClasses = twMerge(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is greatly increasing complexity, I think we advise against this in the future.

src/components/paragraphs/stanford-card/card-paragraph.tsx Outdated Show resolved Hide resolved
@pookmish
Copy link
Contributor

@rebeccahongsf see this comment first since it might push you one way or another here.

rebeccahongsf and others added 4 commits September 18, 2024 13:03
Copy link
Contributor

@pookmish pookmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small change, but I think this is better already

@@ -66,9 +66,11 @@ const PillCard = ({imageUrl, imageAlt, videoUrl, isArticle, children, bgColor, .

<div
className={twMerge(
"rs-px-3 flex flex-col pb-[125px] pt-20 @7xl:rs-px-4 @2xl:pb-[175px] @3xl:pb-[225px] @4xl:pb-[300px]",
"rs-px-3 flex flex-col pb-[125px] pt-20 @7xl:rs-px-4 @2xl:pb-[175px] @3xl:pb-[225px] @4xl:pb-[300px] [&_p>a]:text-black-true hocus:[&_p>a]:text-[#00365C]",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it does, but the links on the "Spirited Light" (2.46) and the "Olive Light" (2.86) still don't work

Copy link
Contributor

@pookmish pookmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta fix the link colors in two card variants.

https://github.com/SU-SWS/summer-nextjs/pull/66/files#r1765795628

@pookmish
Copy link
Contributor

I hate to be the bearer of bad news, but we still have contrast issues with the hover color. "Olive Light" & "Spirited Light hav an opacity, so we gotta take that into consideration.
image

image

@pookmish pookmish merged commit 7d83b1e into 1.x Sep 23, 2024
3 of 4 checks passed
@pookmish pookmish deleted the feature/SUM-253--headingSize branch September 23, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants