Skip to content

Conversation

@Anca2022
Copy link
Contributor

PR Checklist

  • Linked issue added: Linear issue INTORG-69
  • If styles were updated:
    • Stylesheet version has been bumped

Summary

Center the top menu on foundation website

@Anca2022 Anca2022 self-assigned this Oct 20, 2025
@Anca2022 Anca2022 requested a review from JoblersTune October 20, 2025 13:08
display: grid;
grid-template-columns: minmax(10em, 1fr) 1fr 1fr;
/* the 123px below: ~ the width of the language switcher, so that menu is centered */
grid-template-columns: 10em 1fr calc(10em - 123px);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's avoid "magic numbers". It's always better practice to put a value in a variable and name it. Then when people look at it in the future they can see what this value represents.

I tried explicitly setting the width on the language switcher to 123px and it breaks. Keep in mind the width value changes as the screen size changes, it causes the text size to change since our fonts are set to be smoothly responsive.

@Anca2022 Anca2022 marked this pull request as draft October 22, 2025 08:58
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