Skip to content

Feat: blog post - Content Localization#301

Merged
angela-tran merged 10 commits into
mainfrom
feat/content-localization-blog-post
May 29, 2026
Merged

Feat: blog post - Content Localization#301
angela-tran merged 10 commits into
mainfrom
feat/content-localization-blog-post

Conversation

@angela-tran
Copy link
Copy Markdown
Member

@angela-tran angela-tran self-assigned this Apr 30, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2026

Deploy Preview for compilerla ready!

Name Link
🔨 Latest commit 1641f24
🔍 Latest deploy log https://app.netlify.com/projects/compilerla/deploys/6a19db796a71120007060151
😎 Deploy Preview https://deploy-preview-301--compilerla.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread src/_posts/2026-04-30-content-localization.md Outdated
Comment thread src/_posts/2026-04-30-content-localization.md Outdated
@angela-tran angela-tran marked this pull request as ready for review May 29, 2026 16:37
@angela-tran angela-tran requested review from a team as code owners May 29, 2026 16:37
jgravois
jgravois previously approved these changes May 29, 2026
Copy link
Copy Markdown
Member

@jgravois jgravois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/styles/base.css
Comment on lines +681 to 683
.blog_post p:last-child:not(li p) {
margin-bottom: 0;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker, but i tried setting margin-bottom: 0 manually on the last <p> tag in the unordered list to try and simulate what things would look like without this modification and it didn't appear to be problematic.

Image

are you seeing something different locally?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so because each <li> contains a <p>, each of those <p> elements is the last-child. With the original CSS rule of

.blog_post p:last-child {
    margin-bottom: 0;
}

this resulted in a really tight list, spacing-wise:

image

My sense on the .blog_post p:not(:last-child)/.blog_post p:last-child rules is that they were more for controlling the spacing between the main <p> elements of the post rather than <p>s that are nested in lists, so I figured adding the :not(li p) here was reasonable. Open to other ideas for making this more readable or intuitive!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no complaints here. thanks for confirming that my (lazy) simulation was indeed not reflective of how things look without the new modifier 👍

@angela-tran angela-tran force-pushed the feat/content-localization-blog-post branch from dac5359 to e27a015 Compare May 29, 2026 17:40
Comment thread src/_posts/2026-04-30-content-localization.md
@angela-tran angela-tran enabled auto-merge May 29, 2026 17:54
this was motivated by noticing that there was extra space in the case of
an image followed by an `h2` when compared to a paragraph followed by an `h2`,
which has its rule via `.blog_post p + h2`.

I don't know if this change would break some part of the design, but from what
I see with our existing blog posts, there aren't any realized instances of style regression.
Copy link
Copy Markdown
Member

@jgravois jgravois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌈🌈

@angela-tran angela-tran merged commit e717571 into main May 29, 2026
5 checks passed
@angela-tran angela-tran deleted the feat/content-localization-blog-post branch May 29, 2026 20:08
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.

3 participants