Visitar URL original
fix(docs-infra): fix aio homepage breaking on certain widths by dario-piotrowicz · Pull Request #44126 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20220131204524/https://github.com/angular/angular/pull/44126
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

fix(docs-infra): fix aio homepage breaking on certain widths #44126

Conversation

@dario-piotrowicz
Copy link
Contributor

@dario-piotrowicz dario-piotrowicz commented Nov 9, 2021

the aio homepage has a fixed width for its hero content,
that is not handling well certain window widths, fix that by removing
the fixed width and tweaking related media queries

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

The aio homepage does handle well certain window widths:

Peek 2021-11-09 22-05

What is the new behavior?

The issue does not happen anymore and all window width's are handled

Does this PR introduce a breaking change?

  • Yes
  • No
@google-cla google-cla bot added the cla: yes label Nov 9, 2021
@pullapprove pullapprove bot requested a review from gkalpak Nov 9, 2021
@dario-piotrowicz dario-piotrowicz force-pushed the aio-fix-home-width-issue branch 3 times, most recently from 9809f82 to bd34176 Nov 9, 2021
@dario-piotrowicz
Copy link
Contributor Author

@dario-piotrowicz dario-piotrowicz commented Nov 9, 2021

@gkalpak the second commit (fix(docs-infra): remove negative margin) is unrelated.... I just couldn't resist as I find negative margins hacky... if you don't agree with that change please let me know and I can drop the commit no problem 😅

@mary-poppins
Copy link

@mary-poppins mary-poppins commented Nov 18, 2021

@ngbot ngbot bot added this to the Backlog milestone Nov 18, 2021
@gkalpak gkalpak removed this from the Backlog milestone Nov 18, 2021
@gkalpak gkalpak added this to the docs-infra-aio-app milestone Nov 18, 2021
@gkalpak gkalpak added this to REVIEW in docs-infra Nov 18, 2021
Copy link
Member

@gkalpak gkalpak left a comment

One question. Otherwise lgtm 👍
Thx, @dario-piotrowicz!

aio/src/styles/1-layouts/footer/_footer.scss Outdated Show resolved Hide resolved
the aio homepage has a fixed width for its hero content,
that is not handling well certain window widths, fix that by removing
the fixed width and tweaking related media queries
remove the top padding for the homepage article, instead of
having that top padding and moving the element up via a
negative bottom margin in the intro section

note: the result is identical except for when the article's media query
is applied, the difference is barely noticeable anyways
@dario-piotrowicz dario-piotrowicz force-pushed the aio-fix-home-width-issue branch from c405fa4 to e33cf14 Nov 18, 2021
@mary-poppins
Copy link

@mary-poppins mary-poppins commented Nov 18, 2021

@jessicajaniuk
Copy link
Contributor

@jessicajaniuk jessicajaniuk commented Nov 19, 2021

This PR was merged into the repository by commit d8ae34a.

jessicajaniuk added a commit that referenced this issue Nov 19, 2021
remove the top padding for the homepage article, instead of
having that top padding and moving the element up via a
negative bottom margin in the intro section

note: the result is identical except for when the article's media query
is applied, the difference is barely noticeable anyways

PR Close #44126
jessicajaniuk added a commit that referenced this issue Nov 19, 2021
the aio homepage has a fixed width for its hero content,
that is not handling well certain window widths, fix that by removing
the fixed width and tweaking related media queries

PR Close #44126
jessicajaniuk added a commit that referenced this issue Nov 19, 2021
remove the top padding for the homepage article, instead of
having that top padding and moving the element up via a
negative bottom margin in the intro section

note: the result is identical except for when the article's media query
is applied, the difference is barely noticeable anyways

PR Close #44126
@gkalpak gkalpak moved this from REVIEW to MERGE in docs-infra Nov 19, 2021
@dario-piotrowicz dario-piotrowicz deleted the aio-fix-home-width-issue branch Nov 19, 2021
@gkalpak gkalpak mentioned this pull request Nov 22, 2021
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Dec 20, 2021

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 20, 2021
dimakuba added a commit to dimakuba/angular that referenced this issue Dec 28, 2021
…#44126)

the aio homepage has a fixed width for its hero content,
that is not handling well certain window widths, fix that by removing
the fixed width and tweaking related media queries

PR Close angular#44126
dimakuba added a commit to dimakuba/angular that referenced this issue Dec 28, 2021
remove the top padding for the homepage article, instead of
having that top padding and moving the element up via a
negative bottom margin in the intro section

note: the result is identical except for when the article's media query
is applied, the difference is barely noticeable anyways

PR Close angular#44126
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants