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

Replace h1 with div in consent overlay modal #4399

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

SteveDMurphy
Copy link
Contributor

@SteveDMurphy SteveDMurphy commented Nov 7, 2023

Closes FIDES-247

Description Of Changes

Requested by a user that noticed the h1 element used in the consent overlay modal could detract from SEO.

Found that there is an existing style variable for this (--fides-overlay-font-size-title) that was in some cases being overridden by the h1 element if styled.

Switching to a div allowed the expected style to be used

Code Changes

  • Replaced the h1 element with a div element in ConsentContent.tsx

Steps to Confirm

  • Tested and validated the change to the consent overlay using the expected variable (graphic below)

With styled h1:
image

Without styled h1:
image

After change to a div:
image

This could potentially result in some change in default appearance for the overlay, which should be reviewed (not a one person choice I think)

Pre-Merge Checklist

Copy link

vercel bot commented Nov 7, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 8:55pm

@SteveDMurphy SteveDMurphy changed the title [skip ci] change p to div Replace h1 with div in consent overlay modal Nov 7, 2023
@SteveDMurphy SteveDMurphy self-assigned this Nov 7, 2023
@SteveDMurphy SteveDMurphy marked this pull request as ready for review November 7, 2023 21:01
@SteveDMurphy SteveDMurphy merged commit bce0664 into main Nov 7, 2023
12 checks passed
@SteveDMurphy SteveDMurphy deleted the SteveDMurphy-fides-247-div branch November 7, 2023 21:02
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