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

Properly BEMify m-inset--email #8472

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Properly BEMify m-inset--email #8472

merged 1 commit into from
Jun 19, 2024

Conversation

anselmbradford
Copy link
Member

Changes

  • Add m-inset to accompany orphan m-inset--email
  • Add bottom margin to m-inset--email to mimic block spacing.
  • Remove float: right on m-inset--email, since that's already set on m-inset.
  • Add clear float to o-prefooter, to clear any floats above the prefooter.

How to test this PR

  1. Crawler search for pages is ?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:

Screenshot 2024-06-13 at 5 58 28 PM

After:

Screenshot 2024-06-13 at 5 58 37 PM

Before:

Screenshot 2024-06-13 at 5 50 05 PM

After:
Screenshot 2024-06-13 at 5 50 20 PM


Before:
Screenshot 2024-06-13 at 5 56 13 PM

After (this one gets kind of a gap now. The page should probably be edited in Wagtail to move the inset up):
https://www.consumerfinance.gov/compliance/compliance-resources/other-applicable-requirements/annual-percentage-rate-tables/
Screenshot 2024-06-13 at 5 56 27 PM

Comment on lines +83 to +86
margin-bottom: unit(
@grid_gutter-width * 2 / @base-font-size-px,
em
) !important;
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 could probably delete this, since regular m-insets don't have it, but I added it for now to retain the spacing at mobile.

@anselmbradford anselmbradford added this pull request to the merge queue Jun 19, 2024
Merged via the queue into main with commit 881f10b Jun 19, 2024
17 checks passed
@anselmbradford anselmbradford deleted the ans_remove_inset_left branch June 19, 2024 04:56
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.

None yet

2 participants