Replace h1 with div in consent overlay modal #4399
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theh1
element if styled.Switching to a
div
allowed the expected style to be usedCode Changes
div
element inConsentContent.tsx
Steps to Confirm
With styled
h1
:Without styled
h1
:After change to a
div
: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
CHANGELOG.md