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 p in consent overlay modal #4396

Merged
merged 2 commits 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 p allowed the expected style to be used

Code Changes

  • Replaced the h1 element with a p 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 p:
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 11:47am

@SteveDMurphy SteveDMurphy force-pushed the SteveDMurphy-fides-247-h1 branch from fae0953 to 24cf936 Compare November 7, 2023 11:46
Copy link

cypress bot commented Nov 7, 2023

Passing run #5074 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 24cf936 into 5122e33...
Project: fides Commit: 97ccb4712f ℹ️
Status: Passed Duration: 00:34 💡
Started: Nov 7, 2023 11:57 AM Ended: Nov 7, 2023 11:57 AM

Review all test suite changes for PR #4396 ↗︎

@SteveDMurphy SteveDMurphy marked this pull request as ready for review November 7, 2023 13:17
@SteveDMurphy SteveDMurphy self-assigned this Nov 7, 2023
@Kelsey-Ethyca Kelsey-Ethyca merged commit cbaa398 into main Nov 7, 2023
@Kelsey-Ethyca Kelsey-Ethyca deleted the SteveDMurphy-fides-247-h1 branch November 7, 2023 19:16
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