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

DS-42 DS-496 | Decanter and fonts update; small visual regression and bug fixes #710

Merged
merged 27 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
803aacc
use node v18; update browserslistrc to match MyAccount etc; reinstall…
yvonnetangsu Sep 8, 2023
50a2d06
Replace su-flex-grow with su-grow, su-flex-shrink-0 with su-shrink-0
yvonnetangsu Sep 8, 2023
e74a185
Update google font import; unintall tailwindcss-interaction-variants;…
yvonnetangsu Sep 8, 2023
dacbfe9
Fix one T/S visual bug that's been bothering me
yvonnetangsu Sep 8, 2023
62bbab0
Global Footer update; T/S mobile menu background color fixup; remove …
yvonnetangsu Sep 8, 2023
3f007af
Replace group-hover group-focus with group-hocus (plus other of our c…
yvonnetangsu Sep 8, 2023
575f852
User menu link bump up to 19px (a11y)
yvonnetangsu Sep 8, 2023
18434df
continue
yvonnetangsu Sep 12, 2023
aaae45e
Merge branch 'dev' into feature/DS-42_update-decanter-fonts
yvonnetangsu Sep 12, 2023
073d7db
linter
yvonnetangsu Sep 12, 2023
a8cb9fc
Merge branch 'dev' into feature/DS-42_update-decanter-fonts
yvonnetangsu Jan 4, 2024
e6fc60f
Remove TW plugins
yvonnetangsu Jan 4, 2024
048f9a3
Fix hero gradients
yvonnetangsu Jan 4, 2024
0e8430d
Use TW default notation for opacity and remove old custom color theme…
yvonnetangsu Jan 4, 2024
0d6c727
Remove all border-solid and border-1 classes
yvonnetangsu Jan 4, 2024
34fb313
Remove gsbCard component which probably sneaked in when dealing with …
yvonnetangsu Jan 4, 2024
7cb4e88
Getting rid of square brackets when not needed; use rem instead of px
yvonnetangsu Jan 5, 2024
94cd9b2
Fix masthead and global header (TS version of masthead) mobile icon p…
yvonnetangsu Jan 5, 2024
f4442fa
avatars fixup
yvonnetangsu Jan 5, 2024
ee10a55
decanter and Tw plugin can be dev dependencies
yvonnetangsu Jan 5, 2024
0a4fc47
Fix mega menu 2nd level menu padding
yvonnetangsu Jan 5, 2024
0228f8b
Modal close button fixups
yvonnetangsu Jan 5, 2024
959bfef
Fix vertical position of CTA link heroicon when placed on the left; r…
yvonnetangsu Jan 5, 2024
9c64443
T/S mobile section menu background color fix
yvonnetangsu Jan 5, 2024
b25521a
TS trip filter modal fix for mobile
yvonnetangsu Jan 5, 2024
c5820b3
chips wrapper padding
yvonnetangsu Jan 5, 2024
6f97cbf
Update .browserslistrc
sherakama Jan 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
last 2 versions
> 0.5%,
last 2 versions,
Firefox ESR,
not dead
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
801 changes: 473 additions & 328 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
"@fortawesome/react-fontawesome": "^0.1.15",
"@heroicons/react": "^1.0.4",
"@netlify/plugin-gatsby": "^3.0.0",
"@tailwindcss/aspect-ratio": "^0.4.0",
"@tailwindcss/forms": "^0.3.4",
"adapt-auth-sdk": "^1.0.10",
"algoliasearch": "^4.9.3",
"body-parser": "^1.19.1",
"cnbuilder": "^3.1.0",
"cookie-parser": "^1.4.6",
"decanter": "^7.0.0-rc.2",
"gatsby": "^4.14.0",
"gatsby-link": "^4.14.0",
"gatsby-plugin-fontawesome-css": "^1.2.0",
Expand Down Expand Up @@ -65,7 +63,6 @@
"storyblok-react": "^0.1.2",
"storyblok-rich-text-react-renderer": "^2.6.1",
"tabbable": "^5.2.0",
"tailwindcss-interaction-variants": "^5.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

We no longer need this plugin since TW has expanded its variants offering

"url-parse": "^1.5.10",
"use-query-params": "^1.2.2",
"xml2js": "^0.4.23"
Expand Down Expand Up @@ -109,10 +106,11 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.14.1",
"@babel/preset-react": "^7.13.13",
"autoprefixer": "^10.2.6",
"autoprefixer": "^10.4.15",
"axios-mock-adapter": "^1.21.2",
"cross-env": "^7.0.2",
"cypress": "^10.3.0",
"decanter": "^7.1.1",
"dotenv": "^16.0.0",
"eslint": "^7.26.0",
"eslint-config-airbnb": "^18.2.1",
Expand All @@ -128,7 +126,7 @@
"local-ssl-proxy": "^1.3.0",
"netlify-cli": "^12.1.1",
"node-vault": "^0.9.22",
"postcss": "^8.3.5",
"postcss": "^8.4.29",
"prettier": "^2.3.0",
"start-server-and-test": "^2.0.0",
"storyblok": "^3.10.0",
Expand Down
10 changes: 5 additions & 5 deletions src/components/cards/GradientCard/GradientCard.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export const root = ({ orientation, isDark }) =>
);
export const imageWrapper = ({ orientation }) =>
dcnb('su-relative su-overflow-hidden', {
'su-w-full su-mb-[-4em] md:su-mb-0 md:su-w-1/2 su-h-[60vw] sm:su-h-[50vw] lg:su-h-[40vw] xl:su-h-500 su-flex-shrink-0 su-h-full':
Copy link
Member Author

Choose a reason for hiding this comment

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

su-flex-shrink-0, su-flex-grow-0, su-flex-shrink, su-flex-grow have been updated in TW to remove the flex

'su-w-full su-mb-[-4em] md:su-mb-0 md:su-w-1/2 su-h-[60vw] sm:su-h-[50vw] lg:su-h-[40vw] xl:su-h-500 su-shrink-0 su-h-full':
orientation === 'horizontal',
'su-aspect-w-3 su-aspect-h-2 su-mb-[-3em]': orientation !== 'horizontal',
});
export const image =
'su-w-full su-h-full su-transition-transform su-transform-gpu group-hover:su-scale-[1.03] group-focus-within:su-scale-[1.03]';
'su-w-full su-h-full su-transition-transform su-transform-gpu group-hocus-within:su-scale-[1.03]';
export const gradient = ({ orientation }) =>
dcnb(
'su-absolute su-block su-w-full su-h-[101%] su-top-0 su-left-0 su-from-transparent su-to-saa-black su-backface-hidden su-bg-gradient-to-b',
Expand All @@ -31,7 +31,7 @@ export const contentWrapper = ({ orientation }) =>
dcnb('su-rs-px-2 su-rs-pb-3', {
'su-w-full md:su-w-9/12 lg:su-w-7/12 lg:su-max-w-[72rem] md:su-self-end md:su-rs-pt-3 md:su-pl-0 md:su-ml-[-7em]':
orientation === 'horizontal',
'su-flex-grow': orientation !== 'horizontal',
'su-grow': orientation !== 'horizontal',
});
export const link = ({ orientation }) =>
dcnb(
Expand All @@ -43,8 +43,8 @@ export const link = ({ orientation }) =>
);
export const heading = 'su-relative su-inline su-type-0';
export const icon =
'su-relative su-inline-block su-text-digital-red-xlight group-hover:su-text-white group-focus:su-text-white';
'su-relative su-inline-block su-text-digital-red-xlight group-hocus:su-text-white';
export const description = ({ orientation }) =>
dcnb('su-relative su-text-black-20 su-flex-grow su-mb-0 su-card-paragraph', {
dcnb('su-relative su-text-black-20 su-grow su-mb-0 su-card-paragraph', {
'xl:su-big-paragraph xl:su-leading-snug': orientation === 'horizontal',
});
5 changes: 2 additions & 3 deletions src/components/cards/TripCard/TripCard.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ export const root =
export const content = 'su-rs-pt-1 su-rs-px-2 su-rs-pb-3';
export const imageWrapper = 'su-aspect-w-3 su-aspect-h-2 su-overflow-hidden';
export const image =
'su-w-full su-h-full su-transition-transform su-transform-gpu group-hover:su-scale-[1.03] group-focus-within:su-scale-[1.03]';
'su-w-full su-h-full su-transition-transform su-transform-gpu group-hocus-within:su-scale-[1.03]';
export const date = 'su-rs-ml-1 su-relative su-mt-[-5.1rem] su-z-1';
export const link =
'su-stretched-link su-group su-z-20 su-mb-08em su-type-2 su-no-underline hocus:su-underline su-underline-offset-[3px] su-decoration-[0.12em] su-decoration-digital-red-xlight focus:su-outline-none';
export const heading =
'su-type-0 su-mt-0 su-font-bold su-relative su-inline su-text-white';
export const icon =
'su-relative su-inline-block group-hover:su-text-white group-focus:su-text-white';
export const icon = 'su-relative su-inline-block group-hocus:su-text-white';
export const subheading =
'su-mt-4 su-mb-0 su-font-semibold su-text-white su-leading-display';
export const description =
Expand Down
2 changes: 1 addition & 1 deletion src/components/cards/ctaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CtaCard = ({
{srText && <SrOnlyText>{` ${srText}`}</SrOnlyText>}
<HeroIcon
iconType={link.linktype === 'url' ? 'external' : 'arrow-right'}
className="su-relative su-inline-block su-text-white group-hover:su-text-white group-focus:su-text-white"
className="su-relative su-inline-block su-text-white group-hocus:su-text-white"
isAnimate
/>
</SbLink>
Expand Down
10 changes: 5 additions & 5 deletions src/components/cards/gsbCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ const GsbCard = ({ blok }) => {
return (
<SbEditable content={blok}>
{!auth.isAuthenticating && (
<div className="print:su-w-[3in] print:su-h-[2in] sm:su-w-[520px] md:su-w-full md:su-w-full su-mx-auto lg:su--mt-[70px]">
<div className="print:su-w-[3in] print:su-h-[2in] sm:su-w-[52rem] md:su-w-full su-mx-auto lg:su--mt-70">
{!noCard && (
<h2 className="su-mb-34 md:su-mb-58 su-font-serif">Your card</h2>
)}
<div className="lg:su-flex lg:su-px-20">
<div className="su-relative su-overflow-hidden su-rounded-[3rem] sm:su-w-[520px] su-mb-50 sm:su-mb-90 lg:su-mb-0 su-bg-[#C3363A]">
<div className="su-relative su-overflow-hidden su-rounded-[3rem] sm:su-w-[52rem] su-mb-50 sm:su-mb-90 lg:su-mb-0 su-bg-[#C3363A]">
{noCard ? (
<img src={exampleImage} alt="Example GSB Digital Member Card" />
) : (
<div className="su-relative su-w-full su-pt-[63%]">
<div className="su-absolute su-top-0 su-w-full su-h-full">
<div className="su-relative su-flex su-flex-col su-h-full su-flex su-text-[38px] su-z-10 su-justify-between">
<div className="su-top-0 su-left-0 su-flex su-items-center su-w-[85%] su-h-[50%]">
<div className="su-relative su-flex su-flex-col su-h-full su-text-[3.8rem] su-z-10 su-justify-between">
<div className="su-top-0 su-left-0 su-flex su-items-center su-w-[85%] su-h-1/2">
<img
src={logo}
alt=""
className="su-max-w-full su-max-h-full"
/>
</div>
<div className="su-flex su-flex-col su-pb-[2.3rem] md:su-pb-[4rem] su-text-14 sm:su-text-22 su-px-[1.2rem] md:su-px-[2.5rem]">
<div className="su-flex su-flex-col su-pb-23 md:su-pb-40 su-text-14 sm:su-text-22 su-px-12 md:su-px-25">
<span className="su-text-22 sm:su-type-2 su-font-semibold">
{auth.userProfile?.name?.fullNameParsed?.firstName}{' '}
{auth.userProfile?.name?.fullNameParsed?.lastName}
Expand Down
10 changes: 4 additions & 6 deletions src/components/cards/iconCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@ const IconCard = ({
isDark,
}) => {
let cardStyles = 'su-bg-white su-border-black-30-opacity-40';
let iconColor =
'su-text-digital-red group-hover:!su-text-digital-red-light group-focus:!su-text-digital-red-light';
let iconColor = 'su-text-digital-red group-hocus:!su-text-digital-red-light';
let headlineColor = 'su-text-black hocus:su-text-digital-red-light';
let headlineIconStyles = 'su-relative su-inline-block';
let headlineIconColor =
'su-text-black group-hover:su-text-digital-red-light group-focus:su-text-digital-red-light';
let headlineIconColor = 'su-text-black group-hocus:su-text-digital-red-light';

// isDark prop is passed from the parent ankle component
// If isDark is true, then the dark themed icon card will be used automatically
if (isDark) {
cardStyles = 'su-bg-saa-black su-border-black-90';
iconColor =
'su-text-digital-red-light group-hover:su-text-digital-red-xlight group-focus:su-text-digital-red-xlight';
'su-text-digital-red-light group-hocus:su-text-digital-red-xlight';
headlineColor = 'su-text-black-10 hocus:su-text-digital-red-xlight';
headlineIconColor =
'su-text-black-10 group-hover:su-text-digital-red-xlight group-focus:su-text-digital-red-xlight';
'su-text-black-10 group-hocus:su-text-digital-red-xlight';
}

headlineIconStyles = dcnb(headlineIconStyles, headlineIconColor);
Expand Down
12 changes: 6 additions & 6 deletions src/components/cards/membershipCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ const MembershipCard = ({ blok: { publicCtaGroup, ctaGroup }, blok }) => {
return (
<SbEditable content={blok}>
{!auth.isAuthenticating && (
<div className="print:su-w-[3in] print:su-h-[2in] sm:su-w-[520px] md:su-w-full md:su-w-full su-mx-auto lg:su--mt-[70px]">
<div className="print:su-w-[3in] print:su-h-[2in] sm:su-w-[52rem] md:su-w-full su-mx-auto lg:su--mt-70">
{!noCard && (
<h2 className="su-mb-34 md:su-mb-58 su-font-serif">Your card</h2>
)}
<div className="lg:su-flex lg:su-px-20">
<div
className={dcnb(
'su-relative su-overflow-hidden su-rounded-[3rem] sm:su-w-[520px] su-mb-50 sm:su-mb-90 lg:su-mb-0',
'su-relative su-overflow-hidden su-rounded-[3rem] sm:su-w-[52rem] su-mb-50 sm:su-mb-90 lg:su-mb-0',
userType !== 'affiliate' ? 'su-text-white' : '',
bgColor
)}
Expand All @@ -79,7 +79,7 @@ const MembershipCard = ({ blok: { publicCtaGroup, ctaGroup }, blok }) => {
) : (
<div className="su-relative su-w-full su-pt-[63%]">
<div className="su-absolute su-top-0 su-w-full su-h-full">
<div className="su-relative su-flex su-flex-col su-h-full su-flex su-text-[38px] su-z-10 su-pl-[5%]">
<div className="su-relative su-flex su-flex-col su-h-full su-text-[3.8rem] su-z-10 su-pl-[5%]">
<div className="su-top-0 su-left-0 su-flex su-items-center su-w-[63%] su-h-[35%]">
<img
src={logo}
Expand All @@ -94,7 +94,7 @@ const MembershipCard = ({ blok: { publicCtaGroup, ctaGroup }, blok }) => {

<div
className={dcnb(
'su-flex su-flex-col su-pb-[2.3rem] md:su-pb-[4rem] su-text-14 sm:su-text-22 su-mt-auto'
'su-flex su-flex-col su-pb-23 md:su-pb-40 su-text-14 sm:su-text-22 su-mt-auto'
)}
>
<span className="su-text-22 sm:su-type-2 su-font-semibold">
Expand Down Expand Up @@ -133,12 +133,12 @@ const MembershipCard = ({ blok: { publicCtaGroup, ctaGroup }, blok }) => {
You are not currently a Stanford Alumni Association (SAA)
Member
</p>
<div className="[&>.cta-group]:su-gap-[10px] [&>.cta-group]:sm:su-gap-[20px]">
<div className="[&>.cta-group]:su-gap-10 [&>.cta-group]:sm:su-gap-20">
<CreateBloks blokSection={publicCtaGroup} />
</div>
</div>
) : (
<div className="[&>.cta-group]:su-gap-[10px] [&>.cta-group]:sm:su-gap-[20px]">
<div className="[&>.cta-group]:su-gap-10 [&>.cta-group]:sm:su-gap-20">
<CreateBloks blokSection={ctaGroup} />
</div>
)}
Expand Down
5 changes: 2 additions & 3 deletions src/components/cards/saaStoryCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ const SaaStoryCard = ({
if (isDark) {
textColor = 'su-text-black-20';
headlineColor = 'su-text-white hocus:su-text-white';
headlineIconColor =
'su-text-digital-red-light group-hover:su-text-white group-focus:su-text-white';
headlineIconColor = 'su-text-digital-red-light group-hocus:su-text-white';
}
}

Expand Down Expand Up @@ -113,7 +112,7 @@ const SaaStoryCard = ({
imageFocus={cardImageFocus || imageFocus}
smartFocus={focus}
size="vertical"
className="su-w-full su-h-full su-object-cover su-transition-transform su-transform-gpu group-hover:su-scale-[1.03] group-focus-within:su-scale-[1.03]"
className="su-w-full su-h-full su-object-cover su-transition-transform su-transform-gpu group-hocus-within:su-scale-[1.03]"
loading="lazy"
width="600"
height="400"
Expand Down
4 changes: 2 additions & 2 deletions src/components/composite/Alert/Alert.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export const dismissButton =
'su-text-17 su-uppercase su-font-bold su-inline-block su-tracking-widest su-mr-0 su-ml-auto';
export const dismissIcon = 'su-ml-02em';
export const labelWrapper =
'su-order-1 su-mb-15 md:su-mb-0 su-flex su-flex-shrink-0 su-rs-mr-1 su-w-full md:su-w-max';
'su-order-1 su-mb-15 md:su-mb-0 su-flex su-shrink-0 su-rs-mr-1 su-w-full md:su-w-max';
export const label = 'su-text-17 su-mb-0';
export const iconWrapper = 'su-inline-block su-mr-5';
export const contentWrapper = 'su-order-2 su-flex-1 su-flex-grow su-w-full';
export const contentWrapper = 'su-order-2 su-flex-1 su-grow su-w-full';
export const heading = 'su-rs-mb-neg1';
4 changes: 2 additions & 2 deletions src/components/composite/accordionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const AccordionItem = React.forwardRef(
aria-expanded={expanded}
onClick={toggle}
>
<span className="su-h-0 group-hover:su-h-full group-focus:su-h-full su-block su-w-[6px] su-absolute su-top-0 su-left-0 su-bg-black" />
<span className="su-pr-20 su-w-full group-hover:su-underline group-focus:su-underline">
<span className="su-h-0 group-hocus:su-h-full su-block su-w-6 su-absolute su-top-0 su-left-0 su-bg-black" />
<span className="su-pr-20 su-w-full group-hocus:su-underline">
{title}
</span>
<span className="su-font-light su-text-[36px] su-text-digital-red su-block">
Expand Down
4 changes: 2 additions & 2 deletions src/components/composite/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ const Hero = ({
</div>
)}
{!isHideScroll && (
<div className="su-text-center su-text-white su-flex-grow-0 su-rs-mt-5 su-font-serif su-font-regular su-text-19 md:su-text-22">
<div className="su-text-center su-text-white su-grow-0 su-rs-mt-5 su-font-serif su-font-regular su-text-19 md:su-text-22">
<p className="su-mb-02em">Scroll to explore</p>
<a
href="#page-title"
className="su-block su-mx-auto su-w-fit su-group"
>
<SrOnlyText>Jump to main content</SrOnlyText>
<ArrowDownIcon
className="su-transition-colors su-text-digital-red-xlight su-w-40 su-h-40 su-p-6 su-border-2 su-border-cardinal-red su-rounded-full group-hover:su-text-white group-focus:su-text-white group-hover:su-bg-cardinal-red-dark group-focus:su-bg-cardinal-red-dark"
className="su-transition-colors su-text-digital-red-xlight su-w-40 su-h-40 su-p-6 su-border-2 su-border-cardinal-red su-rounded-full group-hocus:su-text-white group-hocus:su-bg-cardinal-red-dark"
aria-hidden="true"
/>
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/components/composite/itineraryItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const ItineraryItem = ({ blok }) => {
alignItems="start"
className="su-mb-04em last:su-mb-0"
>
<div className="print:su-hidden su-w-fit su-flex-shrink-0 su-mt-[-0.1em] su-mr-06em">
<div className="print:su-hidden su-w-fit su-shrink-0 su-mt-[-0.1em] su-mr-06em">
<FaIcon
proFaIcon="bed"
className="!su-w-[1.15em]"
Expand All @@ -102,7 +102,7 @@ const ItineraryItem = ({ blok }) => {
alignItems="start"
className="su-mb-04em last:su-mb-0"
>
<div className="print:su-hidden su-w-fit su-flex-shrink-0 su-mt-[-0.1em] su-mr-06em">
<div className="print:su-hidden su-w-fit su-shrink-0 su-mt-[-0.1em] su-mr-06em">
<FaIcon
proFaIcon="utensils"
className="!su-w-[1.15em]"
Expand Down
4 changes: 2 additions & 2 deletions src/components/composite/poster.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const Poster = ({
if (layout === 'left') {
wrapperClasses = 'su-flex su-flex-col su-justify-center md:su-flex-row';
imageWrapper =
'su-flex-shrink-0 su-rs-mb-2 su-mx-auto md:su-rs-mr-4 md:su-mb-0 md:su-ml-0';
contentWrapper = 'su-items-start md:su-flex-grow';
'su-shrink-0 su-rs-mb-2 su-mx-auto md:su-rs-mr-4 md:su-mb-0 md:su-ml-0';
contentWrapper = 'su-items-start md:su-grow';
} else {
wrapperClasses = 'su-flex su-flex-col su-items-center';
contentWrapper = 'su-items-center su-text-center';
Expand Down
7 changes: 3 additions & 4 deletions src/components/content-types/event/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ const Event = ({
if (isDark) {
textColor = 'su-text-black-20';
headlineColor = 'su-text-white hocus:su-text-white';
headlineIconColor =
'su-text-digital-red-light group-hover:su-text-white group-focus:su-text-white';
headlineIconColor = 'su-text-digital-red-light group-hocus:su-text-white';
}
}

Expand All @@ -116,7 +115,7 @@ const Event = ({
}

const iconClasses =
'su-inline-block su-flex-shrink-0 su-mt-2 md:su-mt-3 su-mr-06em su-w-[1em]';
'su-inline-block su-shrink-0 su-mt-2 md:su-mt-3 su-mr-06em su-w-[1em]';
let locationIcon = (
<LocationMarkerIcon className={iconClasses} aria-hidden="true" />
);
Expand Down Expand Up @@ -151,7 +150,7 @@ const Event = ({
smartFocus={focus}
imageFocus={imageFocus}
size="vertical"
className="su-w-full su-h-full su-object-cover su-transition-transform su-transform-gpu group-hover:su-scale-[1.03] group-focus-within:su-scale-[1.03]"
className="su-w-full su-h-full su-object-cover su-transition-transform su-transform-gpu group-hocus-within:su-scale-[1.03]"
loading="lazy"
width="600"
height="400"
Expand Down
2 changes: 1 addition & 1 deletion src/components/content-types/story/storyPageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const StoryPageView = (props) => {
<Container
as="main"
id="main-content"
className="story-page su-relative su-flex-grow su-w-full su-basefont-23"
className="story-page su-relative su-grow su-w-full su-basefont-23"
width="full"
>
<article>
Expand Down
12 changes: 5 additions & 7 deletions src/components/cta/SAACtaLink.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ import { dcnb } from 'cnbuilder';
export const root = 'su-block print:su-hidden';
export const link =
'su-flex su-w-fit su-group su-transition-colors su-no-underline su-underline-offset-[3px] hocus:su-underline';
export const leadingIconWrapper = 'su-w-fit su-max-w-3rem su-flex-shrink-0';
export const leadingIconWrapper = 'su-w-fit su-max-w-3rem su-shrink-0';
export const leadingIcon = 'su-mr-06em su-backface-hidden su-text-black-80';
export const trailingIcon = ({ textColor }) =>
dcnb('su-inline-block', {
'su-text-digital-red-light group-hover:su-text-cardinal-red group-focus:su-text-cardinal-red':
'su-text-digital-red-light group-hocus:su-text-cardinal-red':
textColor === 'bright-red-hover-cardinal-red',
'su-text-white group-hover:su-text-white group-focus:su-text-white':
textColor === 'all-white',
'su-text-black group-hover:su-text-black group-focus:su-text-black':
textColor === 'all-black',
'su-text-digital-red-xlight group-hover:su-text-black-20 group-focus:su-text-black-20':
'su-text-white group-hocus:su-text-white': textColor === 'all-white',
'su-text-black group-hocus:su-text-black': textColor === 'all-black',
'su-text-digital-red-xlight group-hocus:su-text-black-20':
textColor === 'bright-red-hover-white' ||
textColor === 'white' ||
textColor === 'black',
Expand Down
Loading
Loading