-
Notifications
You must be signed in to change notification settings - Fork 12
Wave 3: Component/template and Sass modernization #424
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
base: devin/1782984123-angular20-core-upgrade
Are you sure you want to change the base?
Changes from all commits
0dee7bd
d7af3be
17de9dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| @import "../../shared/scss/media"; | ||
| @import "../../shared/scss/theme_variables"; | ||
| @use "../../shared/scss/media" as *; | ||
| @use "../../shared/scss/theme_variables" as *; | ||
|
|
||
| :host >>> { | ||
| :host ::ng-deep { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: Replaced deprecated >>> with also-deprecated ::ng-deep The Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| a { | ||
| font-weight: bold; | ||
| text-decoration: none; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| @import "./media"; | ||
| @import "./theme_variables"; | ||
| @use "sass:color"; | ||
| @use "sass:math"; | ||
| @use "./media" as *; | ||
| @use "./theme_variables" as *; | ||
|
|
||
| /* ---------------------------------- | ||
|
|
||
|
|
@@ -142,10 +144,10 @@ | |
| } | ||
|
|
||
| &:before { | ||
| border-top: $skull-size / 8 solid $wrapper-background-color; | ||
| border-top: math.div($skull-size, 8) solid $wrapper-background-color; | ||
|
|
||
| @media #{$mobile-only} { | ||
| border-top: $skull-size / 8 solid $wrapper-mobile-background-color; | ||
| border-top: math.div($skull-size, 8) solid $wrapper-mobile-background-color; | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -230,7 +232,7 @@ | |
| $theme-amoledblack-body-background-color, | ||
| $theme-amoledblack-text-color, | ||
| $theme-amoledblack-text-color, | ||
| darken($theme-amoledblack-text-color, 33%), | ||
| color.adjust($theme-amoledblack-text-color, $lightness: -33%), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: darken() to color.adjust() migration is mathematically equivalent The migration from Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| $theme-amoledblack-body-background-color, | ||
| $theme-amoledblack-subtext-color, | ||
| $theme-amoledblack-secondary-color, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @import "./app/shared/scss/themes"; | ||
| @use "./app/shared/scss/themes"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 *Info: styles.scss uses @use without 'as ' unlike all other files In Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| html { | ||
| height: 100%; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Info: Event coalescing changes change detection timing behavior
Adding
provideZoneChangeDetection({ eventCoalescing: true })atsrc/app/app.module.ts:29is a behavioral change, not just a refactor. With event coalescing enabled, Angular will batch multiple change detection cycles triggered by events in the same event loop tick into a single cycle. This improves performance but subtly changes when views update — if any component relies on intermediate change detection runs between synchronous event handlers, it could behave differently. For this app (a Hacker News reader), this is very unlikely to cause issues, but it's worth noting as a deliberate behavioral change rather than a mechanical migration.Was this helpful? React with 👍 or 👎 to provide feedback.