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.
Changes
m-inset
to accompany orphanm-inset--email
m-inset--email
to mimic block spacing.float: right
onm-inset--email
, since that's already set onm-inset
.o-prefooter
, to clear any floats above the prefooter.How to test this PR
?q=m-inset--email&search_type=html
. For example:http://localhost:8000/compliance/compliance-resources/mortgage-resources/loan-origination-rule/
http://localhost:8000/compliance/compliance-resources/signup/
http://localhost:8000/compliance/compliance-resources/consumer-cards-resources/credit-card-penalty-fees/
In some cases, the inset is below the heading because of the top margin of the block that was there, so in this PR the inset moves up to be in line with the heading. This seems acceptable, since some of the pages have insets that are already aligned with their associated section heading, so this makes it more consistent.
Screenshots
Before:
After:
Before:
After:
![Screenshot 2024-06-13 at 5 50 20 PM](https://private-user-images.githubusercontent.com/704760/339566973-4ab1ceac-7994-4ce5-bae9-56a0b8884fbb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0ODY5MjEsIm5iZiI6MTcxOTQ4NjYyMSwicGF0aCI6Ii83MDQ3NjAvMzM5NTY2OTczLTRhYjFjZWFjLTc5OTQtNGNlNS1iYWU5LTU2YTBiODg4NGZiYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRF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VNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Sf0eePwpJAr5VboHg82KRQBVKdiZ16djvnV-g_NKzRQ)
After (this one gets kind of a gap now. The page should probably be edited in Wagtail to move the inset up):
![Screenshot 2024-06-13 at 5 56 27 PM](https://private-user-images.githubusercontent.com/704760/339566772-2eec76c3-562c-465e-8b73-4a5ff601ec6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0ODY5MjEsIm5iZiI6MTcxOTQ4NjYyMSwicGF0aCI6Ii83MDQ3NjAvMzM5NTY2NzcyLTJlZWM3NmMzLTU2MmMtNDY1ZS04YjczLTRhNWZmNjAxZWM2ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyN1QxMTEwMjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZjFhZGQxMTU1NWZmMDA1Y2RkOTRmNmQ2YzllYThhYmJhZjg0MTUwNThhNmU2YTAxMjI1YTE0Mjc4NDc1NzhiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cQCax1DEoGBieoDVwMBxqN_6VjwXvWilRLPYZiXzFtY)
https://www.consumerfinance.gov/compliance/compliance-resources/other-applicable-requirements/annual-percentage-rate-tables/