Skip to content

refactor(docs-infra): minor refactorings/style changes#42396

Closed
gkalpak wants to merge 5 commits into
angular:masterfrom
gkalpak:refactor-aio-dark-mode-cleanup
Closed

refactor(docs-infra): minor refactorings/style changes#42396
gkalpak wants to merge 5 commits into
angular:masterfrom
gkalpak:refactor-aio-dark-mode-cleanup

Conversation

@gkalpak

@gkalpak gkalpak commented May 27, 2021

Copy link
Copy Markdown
Member

This PR includes some minor refactorings and style changes as a follow-up to PR #41129.
(The changes were minor enough that didn't warrant blocking the PR.)

@gkalpak gkalpak added refactoring Issue that involves refactoring or code-cleanup comp: docs-infra target: patch This PR is targeted for the next patch release labels May 27, 2021
@ngbot ngbot Bot modified the milestone: Backlog May 27, 2021
@google-cla google-cla Bot added the cla: yes label May 27, 2021
@mary-poppins

Copy link
Copy Markdown

You can preview cdb40a0 at https://pr42396-cdb40a0.ngbuilds.io/.

@gkalpak gkalpak marked this pull request as ready for review May 28, 2021 07:44
@gkalpak gkalpak added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 28, 2021
@gkalpak gkalpak requested a review from petebacondarwin May 28, 2021 07:45
Comment thread aio/src/styles/1-layouts/marketing-layout/_marketing-layout-theme.scss Outdated
@gkalpak gkalpak added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 28, 2021
@gkalpak gkalpak force-pushed the refactor-aio-dark-mode-cleanup branch from cdb40a0 to 9b9a2f6 Compare May 29, 2021 14:27
@gkalpak gkalpak added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels May 29, 2021
@pullapprove pullapprove Bot requested a review from aikithoughts May 29, 2021 14:27
@gkalpak

gkalpak commented May 29, 2021

Copy link
Copy Markdown
Member Author

@petebacondarwin, I have added three new commits with some more refactorings/fixes/docs changes. PTAL 🙏

@mary-poppins

Copy link
Copy Markdown

You can preview 9b9a2f6 at https://pr42396-9b9a2f6.ngbuilds.io/.

@gkalpak gkalpak requested a review from petebacondarwin May 29, 2021 14:59

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice - one typo in the content and one in a commit:

fix(docs-infra): improve homepage layout in print mode
In #41129, the `.hero-logo` image what changed from an `<img>` element
                                  ^^^^

Comment thread aio/src/styles/README.md Outdated
@petebacondarwin petebacondarwin added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 29, 2021
gkalpak added 5 commits May 30, 2021 22:11
This commit includes some minor refactorings and style changes as a
follow-up to PR angular#41129. (The changes were minor enough that didn't
warrant blocking the PR.)
This commit removes the `_typography-theme.scss` file that is currently
not used. The file contains a single Sass mixin
(`docs-site-typography-theme()`), which is never called.
In angular#41129, the `.hero-logo` image was changed from an `<img>` element to
a `<div>` with an image background. As a result, in print mode (where
browsers often omit backgrounds to save ink) the logo was not present.

This commit fixes this by ensuring the word `Angular` is displayed as a
title instead of the logo in print mode. It also hides the `Get started`
button in print mode, since it doesn't add any value.

Before: ![homepage-print before][1]
After: ![homepage-print after][2]

[1]: https://user-images.githubusercontent.com/8604205/120068867-889e6080-c08b-11eb-9bd5-233d8592f7ec.png
[2]: https://user-images.githubusercontent.com/8604205/120068869-89cf8d80-c08b-11eb-8740-a68a5ef68c34.png
@gkalpak gkalpak force-pushed the refactor-aio-dark-mode-cleanup branch from 9b9a2f6 to 83a5874 Compare May 30, 2021 19:14
@gkalpak gkalpak removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 30, 2021
@mary-poppins

Copy link
Copy Markdown

You can preview 83a5874 at https://pr42396-83a5874.ngbuilds.io/.

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed-for: global-docs-approvers

@gkalpak gkalpak removed the request for review from aikithoughts May 30, 2021 20:32
@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 30, 2021
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
This commit includes some minor refactorings and style changes as a
follow-up to PR #41129. (The changes were minor enough that didn't
warrant blocking the PR.)

PR Close #42396
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
…2396)

This commit removes the `_typography-theme.scss` file that is currently
not used. The file contains a single Sass mixin
(`docs-site-typography-theme()`), which is never called.

PR Close #42396
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
In #41129, the `.hero-logo` image was changed from an `<img>` element to
a `<div>` with an image background. As a result, in print mode (where
browsers often omit backgrounds to save ink) the logo was not present.

This commit fixes this by ensuring the word `Angular` is displayed as a
title instead of the logo in print mode. It also hides the `Get started`
button in print mode, since it doesn't add any value.

Before: ![homepage-print before][1]
After: ![homepage-print after][2]

[1]: https://user-images.githubusercontent.com/8604205/120068867-889e6080-c08b-11eb-9bd5-233d8592f7ec.png
[2]: https://user-images.githubusercontent.com/8604205/120068869-89cf8d80-c08b-11eb-8740-a68a5ef68c34.png

PR Close #42396
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
…2396)

This commit removes the `_typography-theme.scss` file that is currently
not used. The file contains a single Sass mixin
(`docs-site-typography-theme()`), which is never called.

PR Close #42396
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
In #41129, the `.hero-logo` image was changed from an `<img>` element to
a `<div>` with an image background. As a result, in print mode (where
browsers often omit backgrounds to save ink) the logo was not present.

This commit fixes this by ensuring the word `Angular` is displayed as a
title instead of the logo in print mode. It also hides the `Get started`
button in print mode, since it doesn't add any value.

Before: ![homepage-print before][1]
After: ![homepage-print after][2]

[1]: https://user-images.githubusercontent.com/8604205/120068867-889e6080-c08b-11eb-9bd5-233d8592f7ec.png
[2]: https://user-images.githubusercontent.com/8604205/120068869-89cf8d80-c08b-11eb-8740-a68a5ef68c34.png

PR Close #42396
AndrewKushnir pushed a commit that referenced this pull request Jun 1, 2021
@gkalpak gkalpak deleted the refactor-aio-dark-mode-cleanup branch June 1, 2021 18:01
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants