Skip to content

Revert "feat: enable light mode (#255)" #443

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

Merged
merged 1 commit into from
May 12, 2025
Merged

Revert "feat: enable light mode (#255)" #443

merged 1 commit into from
May 12, 2025

Conversation

DDonochVA
Copy link
Contributor

@DDonochVA DDonochVA commented May 12, 2025

This reverts commit 600f623.

Summary by CodeRabbit

  • New Features

    • Footer now displays the current year dynamically.
  • Style

    • Unified and simplified color and background styling across components, removing light mode and dark mode distinctions.
    • Removed or adjusted several text color and background classes for headings, buttons, cards, and navigation for a more consistent appearance.
    • Updated card and article components to streamline image handling and reduce visual complexity.
    • Footer, navigation, and social media icons styling updated for improved clarity and consistency.
  • Chores

    • Removed unused dependencies and plugins related to theme variants.
    • Cleaned up configuration files and CSS variables to eliminate light theme support and redundant color definitions.

Copy link

coderabbitai bot commented May 12, 2025

Walkthrough

This set of changes removes light theme support and related CSS variables, eliminates theme-variant-based Tailwind configuration, and standardizes styling across components by removing light/dark mode-specific and foreground/background color classes. Several Angular components are updated to simplify or remove color and background class bindings, and some input properties are refactored or removed for consistency.

Changes

Files/Groups Change Summary
libs/blog/about-us/feature-about-us/...feature-about-us.component.html
libs/blog/articles/ui-article-list-title/...ui-article-list-title.component.html
libs/blog/newsletter/feature-newsletter/...newsletter.component.html
Removed text-al-primary-foreground from headings.
libs/blog/articles/feature-latest-articles/...feature-latest-articles.component.ts Added CardComponent to Angular component imports.
libs/blog/articles/ui-article-card/...article-compact-card.component.html
...article-compact-card.component.ts
Switched article image from <img> to CSS background; removed NgOptimizedImage and imagePriority input.
libs/blog/articles/ui-article-card/...article-hero-card-skeleton.component.ts
...article-horizontal-card/article-horizontal-card.component.html
...article-regular-card/article-regular-card.component.html
...ui-article-card/ui-article-card.component.html
Simplified or removed background, border, and text color classes; removed bg-transparent and imagePriority where present.
libs/blog/authors/ui-author-card/...author-card-template.component.ts
...author-card.component.html
Removed standalone: true, simplified/removes color classes, and removed directives.
libs/blog/become-author/feature-become-author-page/...become-author-page.component.html
...become-author-list-item.component.html
Removed text-white from buttons and index; fixed trailing comma.
libs/blog/layouts/ui-layouts/...footer-logo.component.ts
...footer-social-media-icons.component.ts
...footer.component.html
...footer.component.scss
Added required currentYear input to footer logo; updated copyright placement; changed background to variable; adjusted grid.
libs/blog/layouts/ui-navigation/...navigation.component.html
...navigation.component.ts
Removed justify-center, simplified anchor color classes, and removed whiteFont input.
libs/blog/partners/ui-partners/...partners-list.component.html Removed light theme border and rounding classes.
libs/blog/shared/ui-card/...card.component.ts
...card.stories.ts
Updated card and gradient card host classes to remove/replace background and border classes; removed bg-transparent in story.
libs/blog/shared/ui-difficulty/...ui-difficulty.component.ts Simplified conditional class logic, removed dark/transparent classes, standardized backgrounds.
libs/blog/shared/ui-pill/...pill.directive.ts Removed text-white from "flat" variant.
libs/blog/shared/ui-social-media-icons/...social-media-icons.component.html Removed explicit white text color class.
libs/blog/writing-rules/feature-writing-rules/...rules-row.component.html Removed text-white from index and button.
libs/shared/assets/src/lib/styles/main.scss Removed light theme CSS variables and media query; only dark theme remains.
package.json Removed tailwindcss-theme-variants dependency.
tailwind.preset.js Removed theme-variants plugin/config, light/dark theme colors, and adjusted box shadow color.

Sequence Diagram(s)

sequenceDiagram
  participant App
  participant FooterLogoComponent

  App->>FooterLogoComponent: Passes required currentYear input
  FooterLogoComponent->>FooterLogoComponent: Renders copyright with currentYear
Loading

Possibly related PRs

  • HouseOfAngular/angular-love#255: This PR previously added the text-al-primary-foreground and bg-transparent classes that are now being removed, indicating a direct reversal of those changes.

Suggested reviewers

  • majahendzel-va

Poem

In fields of code where colors fade,
The rabbit hops, no light displayed.
Foreground gone, the themes align,
Simpler styles—how neat, how fine!
With every hop, a class removed,
The garden’s look is now improved.
🐇✨

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@valueadd-robot
Copy link

PR is detected, will deploy to dev environment

@valueadd-robot
Copy link

Deployed to dev environment
Branch: revert/lightmode
BFF URL: https://fb833df6-blog-bff-dev.contact-ef8.workers.dev
Deploy URL: https://031a742a.angular-love-client.pages.dev
Alias URL: https://revert-lightmode.angular-love-client.pages.dev

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (1)
libs/blog/articles/feature-latest-articles/src/lib/feature-latest-articles/feature-latest-articles.component.ts (1)

33-46: 🛠️ Refactor suggestion

Remove duplicate CardComponent entry in imports
The imports array lists CardComponent twice (lines 36 and 41). This redundancy should be cleaned up to avoid confusion.

 @Component({
   imports: [
     UiArticleCardComponent,
     NewsletterComponent,
-    CardComponent,
     GradientCardDirective,
     NgClass,
     TranslocoDirective,
     ArticleRegularCardSkeletonComponent,
-    CardComponent,
     RepeatDirective,
     RouterLink,
     ButtonComponent,
     PillDirective,
   ],
 ...
 })
🧹 Nitpick comments (1)
libs/blog/articles/ui-article-card/src/lib/components/article-horizontal-card/article-horizontal-card.component.html (1)

3-3: Verify content overflow with the new max-height
The max-h-52 utility caps the card height at 13rem; ensure long titles or excerpts aren’t clipped unexpectedly. Consider adding overflow-hidden or using line-clamp on inner text elements to gracefully handle overflow.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 600f623 and 137a321.

⛔ Files ignored due to path filters (2)
  • apps/blog/src/assets/icons/arrow-down.svg is excluded by !**/*.svg
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (30)
  • libs/blog/about-us/feature-about-us/src/lib/feature-about-us/feature-about-us.component.html (2 hunks)
  • libs/blog/articles/feature-latest-articles/src/lib/feature-latest-articles/feature-latest-articles.component.ts (1 hunks)
  • libs/blog/articles/ui-article-card/src/lib/components/article-compact-card/article-compact-card.component.html (1 hunks)
  • libs/blog/articles/ui-article-card/src/lib/components/article-compact-card/article-compact-card.component.ts (1 hunks)
  • libs/blog/articles/ui-article-card/src/lib/components/article-hero-card/article-hero-card-skeleton.component.ts (1 hunks)
  • libs/blog/articles/ui-article-card/src/lib/components/article-horizontal-card/article-horizontal-card.component.html (1 hunks)
  • libs/blog/articles/ui-article-card/src/lib/components/article-regular-card/article-regular-card.component.html (3 hunks)
  • libs/blog/articles/ui-article-card/src/lib/ui-article-card/ui-article-card.component.html (1 hunks)
  • libs/blog/articles/ui-article-list-title/src/lib/ui-article-list-title/ui-article-list-title.component.html (1 hunks)
  • libs/blog/authors/ui-author-card/src/lib/author-card/author-card-template.component.ts (1 hunks)
  • libs/blog/authors/ui-author-card/src/lib/author-card/author-card.component.html (1 hunks)
  • libs/blog/become-author/feature-become-author-page/src/lib/become-author-page/become-author-page.component.html (2 hunks)
  • libs/blog/become-author/feature-become-author-page/src/lib/components/become-author-list-item/become-author-list-item.component.html (1 hunks)
  • libs/blog/layouts/ui-layouts/src/lib/footer/components/footer-logo.component.ts (2 hunks)
  • libs/blog/layouts/ui-layouts/src/lib/footer/components/footer-social-media-icons.component.ts (1 hunks)
  • libs/blog/layouts/ui-layouts/src/lib/footer/footer.component.html (1 hunks)
  • libs/blog/layouts/ui-layouts/src/lib/footer/footer.component.scss (1 hunks)
  • libs/blog/layouts/ui-navigation/src/lib/navigation/navigation.component.html (3 hunks)
  • libs/blog/layouts/ui-navigation/src/lib/navigation/navigation.component.ts (0 hunks)
  • libs/blog/newsletter/feature-newsletter/src/lib/feature-newsletter/newsletter.component.html (1 hunks)
  • libs/blog/partners/ui-partners/src/lib/partners-list/partners-list.component.html (1 hunks)
  • libs/blog/shared/ui-card/src/lib/card.component.ts (2 hunks)
  • libs/blog/shared/ui-card/src/lib/card.stories.ts (1 hunks)
  • libs/blog/shared/ui-difficulty/src/lib/ui-difficulty.component.ts (3 hunks)
  • libs/blog/shared/ui-pill/src/lib/pill.directive.ts (1 hunks)
  • libs/blog/shared/ui-social-media-icons/src/lib/social-media-icons.component.html (1 hunks)
  • libs/blog/writing-rules/feature-writing-rules/src/lib/rules-row/rules-row.component.html (2 hunks)
  • libs/shared/assets/src/lib/styles/main.scss (0 hunks)
  • package.json (0 hunks)
  • tailwind.preset.js (2 hunks)
💤 Files with no reviewable changes (3)
  • package.json
  • libs/shared/assets/src/lib/styles/main.scss
  • libs/blog/layouts/ui-navigation/src/lib/navigation/navigation.component.ts
🔇 Additional comments (50)
libs/blog/writing-rules/feature-writing-rules/src/lib/rules-row/rules-row.component.html (2)

14-14:

❓ Verification inconclusive

Verify text contrast after color class removal

The text-white class has been removed from this paragraph element, which is on a pink background (bg-al-pink). Ensure there's still sufficient color contrast for accessibility.


🏁 Script executed:

#!/bin/bash
# Check if there's a global text color applied in CSS for elements within bg-al-pink
rg -A 5 "bg-al-pink" --type css --type scss

Length of output: 72


🏁 Script executed:

#!/usr/bin/env bash
# Locate the Tailwind config file
config=$(rg --files | rg -E "tailwind\\.config\\.(js|ts|cjs)" | head -n1)
echo "Found Tailwind config at: $config"

# Extract the custom 'al-pink' color definition (and surrounding lines for context)
rg -n "al-pink" -C3 "$config"

Length of output: 600


Unable to locate bg-al-pink definition—please verify contrast manually

I couldn’t find any Tailwind config or CSS/SCSS entries for bg-al-pink. With text-white removed, please ensure the default text color still meets WCAG contrast ratios against this pink background.

• File: libs/blog/writing-rules/feature-writing-rules/src/lib/rules-row/rules-row.component.html
– Line 14: <p class="text-base font-bold">{{ index() + 1 }}</p>


49-49:

❓ Verification inconclusive

Verify text contrast on pink button

The text-white class has been removed from this button with a pink background (bg-al-pink). Please check that the text remains readable with sufficient contrast.


🏁 Script executed:

#!/bin/bash
# Verify if there's a default text color for buttons with bg-al-pink
rg -A 5 "bg-al-pink" --type css --type scss

# Check global button styling
rg "button.*{" --type css --type scss

Length of output: 194


🏁 Script executed:

#!/bin/bash
set -e

# Locate any Tailwind config files
fd 'tailwind.config.*' --hidden || true

# Inspect custom color definitions in Tailwind config(s)
fd 'tailwind.config.*' --hidden -x rg "al-pink" -n {}

# Find all occurrences of bg-al-pink in the repo
rg "bg-al-pink" -n .

# Show surrounding lines to see if a default text color is applied nearby
rg -C2 "bg-al-pink" -n .

Length of output: 220


Ensure text contrast on pink button

The text-white utility was removed from this button with the bg-al-pink background. Without an explicit text-color class, the default color may not meet WCAG contrast requirements against your custom pink. Please verify in-browser (or using a contrast checker) that the resulting text color on bg-al-pink achieves at least a 4.5:1 contrast ratio, and if not, add an appropriate text-… class (for example, text-white) to restore sufficient readability.

• File:
libs/blog/writing-rules/feature-writing-rules/src/lib/rules-row/rules-row.component.html
Line: 49

libs/blog/partners/ui-partners/src/lib/partners-list/partners-list.component.html (1)

6-6: Light theme border styling removed

The light:border and light:rounded-lg classes have been removed, which aligns with disabling light mode support. The element still maintains rounded corners through the rounded-lg class, but be aware that partner logos no longer have a border in light mode.

libs/blog/layouts/ui-layouts/src/lib/footer/components/footer-social-media-icons.component.ts (1)

12-12:

❓ Verification inconclusive

Confirm footer heading readability

The text-[#fff] class has been removed from this heading. If the footer background is dark, verify that the text is still readable with the default text color.


🏁 Script executed:

#!/bin/bash
# Check footer component's background color
rg -A 10 -B 5 "selector: 'al-footer'" --type typescript

# Check if there's a global text color for headings in the footer
rg "footer.*h3" --type css --type scss

Length of output: 168


Confirm footer heading readability

Please verify that on your dark‐themed footer the heading still meets contrast requirements now that the text-[#fff] class has been removed. If the default text color renders too dark on the footer background, add a Tailwind class such as text-white (or another light shade) back to the heading.

Check:

  • Footer SCSS/CSS files under libs/blog/layouts/ui-layouts/src/lib/footer/ for any background or color rules.
  • Global typography or theme settings that might override default text color in this component.
libs/blog/shared/ui-pill/src/lib/pill.directive.ts (1)

12-12:

❓ Verification inconclusive

Pill flat variant text contrast needs verification

The text-white class has been removed from the flat variant styling. Since the background is semi-transparent primary color (bg-al-primary/90), verify that text remains readable with the default text color.


🏁 Script executed:

#!/bin/bash
# Check how this pill is used in the application
rg "alPill.*variant.*flat" --type html --type typescript

# Check if there's a global text color that would apply
rg "al-primary" --type css --type scss

Length of output: 161


Pill flat variant text contrast needs manual verification

  • In libs/blog/shared/ui-pill/src/lib/pill.directive.ts (line 12), the text-white class was removed from the flat variant, leaving only bg-al-primary/90.
  • A semi-transparent primary background can reduce contrast with the default text color (Tailwind’s base text color).
  • Please verify in your running app (or via a WCAG 2.1 AA contrast checker) that text over bg-al-primary/90 remains easily readable.
  • If contrast falls below acceptable levels, re-introduce a high-contrast text class (e.g. text-white) or explicitly set a suitable text color.
libs/blog/articles/ui-article-list-title/src/lib/ui-article-list-title/ui-article-list-title.component.html (1)

4-4: Ensure heading uses the correct default color
Removing text-al-primary-foreground relies on the component inheriting the appropriate default text color. Please verify that the default theme provides the intended contrast and readability across all breakpoints.

libs/blog/shared/ui-card/src/lib/card.stories.ts (1)

61-66: Validate default background behavior in Storybook
The explicit bg-transparent class was removed from <al-card>. Ensure that the card’s default background styling (from CardComponent) matches design expectations in all story variants (regular, withImage, highlighted).

libs/blog/shared/ui-social-media-icons/src/lib/social-media-icons.component.html (1)

4-4: Confirm icon color inheritance
Dropping the explicit text-[#fff] class means color will now come from the parent or default component styles. Please verify that the icons render with the correct color in the footer and other contexts without visual regressions.

libs/blog/articles/ui-article-card/src/lib/components/article-hero-card/article-hero-card-skeleton.component.ts (1)

10-11: Consistent card background simplification applied
Removing the bg-transparent class aligns with the PR’s unified card styling; this skeleton will now inherit the default card background. No functional impact observed.

libs/blog/about-us/feature-about-us/src/lib/feature-about-us/feature-about-us.component.html (3)

2-4: Removed explicit foreground color on main heading
Dropping text-al-primary-foreground in favor of default text color simplifies theming. The heading remains semantically correct and visually bold.


6-12: Card background reset to default
Omitting bg-transparent on <al-card> standardizes the card’s appearance with other components. This change is in line with the global style update.


38-40: Removed explicit foreground color on authors subheading
Consistency maintained by letting the default color apply—removal of text-al-primary-foreground is appropriate here.

libs/blog/authors/ui-author-card/src/lib/author-card/author-card.component.html (1)

45-49: Dropped explicit text color on author name
Removing text-al-foreground streamlines the styling; the default color will apply consistently across themes.

libs/blog/newsletter/feature-newsletter/src/lib/feature-newsletter/newsletter.component.html (1)

8-9: Simplified newsletter title styling
Removing the text-al-primary-foreground class aligns this title with the updated global text styling approach. No accessibility or layout regressions noted.

libs/blog/articles/ui-article-card/src/lib/ui-article-card/ui-article-card.component.html (1)

15-15:

✅ Verification successful

Removed unused imagePriority binding for compact cards
Since ArticleCompactCardComponent no longer defines an @Input() imagePriority, dropping this binding prevents template errors.

Please verify that the imagePriority input was fully removed from the compact card component’s definition to avoid any dangling references:


🏁 Script executed:

#!/bin/bash
# Verify removal of `imagePriority` Input from compact card component
rg -n "Input.*imagePriority" -A2 libs/blog/articles/ui-article-card/src/lib/components/article-compact-card
rg -n "imagePriority" -A2 libs/blog/articles/ui-article-card/src/lib/ui-article-card

Length of output: 1096


Verification Complete: imagePriority input fully removed from compact card component

  • Confirmed no @Input() imagePriority remains in libs/blog/articles/ui-article-card/src/lib/components/article-compact-card
  • Confirmed no [imagePriority] bindings on <al-article-compact-card> in ui-article-card.component.html
libs/blog/become-author/feature-become-author-page/src/lib/become-author-page/become-author-page.component.html (2)

34-34: Styling simplified by removing text-white class

This change aligns with the PR's objective to revert light mode support, removing explicit white text styling and letting the text color be determined by the theme.


64-64: Styling simplified by removing text-white class

This change is consistent with the removal of explicit text color classes throughout the application as part of reverting light mode support.

libs/blog/become-author/feature-become-author-page/src/lib/components/become-author-list-item/become-author-list-item.component.html (3)

4-5: Removed trailing comma in ngClass object

This is a minor syntax improvement that maintains consistent code style without affecting functionality.


11-11: Styling simplified by removing text-white class

This change aligns with the PR's objective of reverting light mode support by removing explicit text color classes.


15-15: Added trailing space in class attribute

This minor formatting change improves readability without affecting functionality.

libs/blog/layouts/ui-navigation/src/lib/navigation/navigation.component.html (3)

9-9: Removed justify-center class from navigation list

The removal of justify-center from the ul element will change how navigation items are aligned, potentially affecting the layout.

Verify that this change doesn't negatively impact the navigation's appearance, particularly in horizontal layout mode where center alignment might have been intentional.


24-24: Replaced conditional text styling with static foreground class

This change simplifies the component by removing conditional text color logic, aligning with the PR's objective to revert light mode support.


36-36: Replaced conditional text styling with static foreground class

This change is consistent with the other navigation links, replacing conditional text coloring with a static foreground class.

libs/blog/articles/ui-article-card/src/lib/components/article-compact-card/article-compact-card.component.ts (2)

12-12: Removed NgOptimizedImage from imports

The removal of the NgOptimizedImage directive is consistent with the related template changes that replace the optimized image element with CSS background styling.


15-17: Removed imagePriority input property

The removal of the imagePriority input property simplifies the component's API and is consistent with the removal of the optimized image implementation from the template.

libs/blog/authors/ui-author-card/src/lib/author-card/author-card-template.component.ts (1)

22-22: Styling simplified by removing theme-specific classes.

The class has been appropriately modified to remove light/dark mode specific styling, using unified background and border styles. This change aligns with the PR objective of reverting the light mode feature.

libs/blog/layouts/ui-layouts/src/lib/footer/footer.component.scss (4)

13-15: Added new copyright grid area.

The copyright grid area is properly defined to accommodate the copyright text in the footer layout.


19-22: Updated grid template to include copyright row.

The grid template areas are correctly updated to include a third row for copyright that spans the full width in the default layout.


24-31: Added responsive layout for medium screens.

The medium screen breakpoint correctly positions the copyright in a dedicated row while maintaining appropriate layout for other elements.


33-33: Changed breakpoint from lg to xl.

The breakpoint has been updated from @screen lg to @screen xl to align with the responsive design requirements.

libs/blog/layouts/ui-layouts/src/lib/footer/components/footer-logo.component.ts (3)

2-2: Updated import to use the newer Angular signal-based input API.

The import statement correctly includes the input function from '@angular/core' for the signal-based input API.


19-21: Added copyright information display.

The <small> element properly displays the copyright information with the current year, conditionally visible only on larger screens (lg:block).


26-28: Added required currentYear input.

The component correctly implements a required currentYear input using the signal-based input API, which is used to display the copyright year.

libs/blog/layouts/ui-layouts/src/lib/footer/footer.component.html (3)

1-1: Updated footer background to use CSS variable.

The footer's background color has been appropriately changed from a specific hex color to the bg-al-card CSS variable class, aligning with the theme simplification.


5-6: Updated component bindings.

The changes include:

  1. Added the required [currentYear] input to the footer logo component
  2. Removed the [whiteFont] input from the navigation component

These changes correctly align with the component modifications and theme simplification.


13-15: Added responsive copyright display for smaller screens.

The copyright text is now properly displayed in a dedicated <small> element with the copyright class, which is visible only on smaller screens (lg:hidden). This complements the copyright display in the logo component that's visible on larger screens.

libs/blog/articles/ui-article-card/src/lib/components/article-regular-card/article-regular-card.component.html (4)

3-3: Simplified card background and hover styling

The class has been simplified by removing dark mode specific styles, which aligns with the broader PR objective of removing light theme support.


21-22: Simplified avatar implementation

The priority attribute has been removed from the avatar component, consistent with the removal of image loading priority attributes throughout the codebase.


37-37: Simplified heading styles

Text color classes like text-al-primary-foreground have been removed to standardize styling across components.


40-40: Simplified paragraph styles

Text color classes have been removed for consistent styling, retaining only the functional line-clamp-2 class to limit text display.

libs/blog/shared/ui-difficulty/src/lib/ui-difficulty.component.ts (3)

28-30: Removed dark mode specific classes

Dark mode prefixes have been removed from background classes, simplifying the conditional styling to use only standard background classes based on the isColorBackground() computed property.


47-49: Standardized shadow styling

Dark mode specific shadow classes have been removed, maintaining only the conditional logic for applying different shadows based on the background color setting.


79-81: Simplified right block styling

Similar to the other blocks, dark mode specific classes have been removed from the right block styling, maintaining consistency across all parts of the component.

libs/blog/articles/ui-article-card/src/lib/components/article-compact-card/article-compact-card.component.html (2)

3-8: Replaced image element with background image

The implementation has been significantly changed from using an <img> element to applying the image directly as a background to the <article> element. This approach simplifies the markup and aligns with the removal of NgOptimizedImage import and imagePriority property in the component.


11-13: Updated container background styling

The inner container now uses a semantic background color class with 85% opacity, replacing previous text color styling. This provides better visual consistency while maintaining the card's content legibility over the background image.

libs/blog/shared/ui-card/src/lib/card.component.ts (2)

72-72: Updated gradient card background styling

The GradientCardDirective now includes a border class and uses a forced radial gradient background with a fallback background color, removing dark mode specific background classes. This simplifies the styling while maintaining the visual appearance.


100-100: Removed background class from card component

The bg-al-card class has been removed from the host element, leaving only structural classes like block, rounded, border, shadow, and overflow. This aligns with the pattern of removing theme-specific background classes across components.

tailwind.preset.js (3)

3-3: Explicit dark mode strategy defined

The configuration now explicitly sets Tailwind's dark mode strategy to use class-based approach. This is consistent with the PR objective of reverting light mode support, consolidating to a single theming approach.


27-27: Box shadow updated to use border variable

The box shadow for 'al-full-border' has been updated to use the --border CSS variable instead of what was likely --grey previously, aligning with the color variable consolidation in the theme reversion.


31-31: Simplified plugin configuration

The plugins array has been simplified to only include '@tailwindcss/container-queries', removing the theme variants plugin. This change is appropriate since theme variants are no longer needed after reverting light mode support.

Comment on lines 9 to 14
@Component({
selector: 'al-article-compact-card',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
AvatarComponent,
RouterLink,
AlLocalizePipe,
FastSvgComponent,
NgOptimizedImage,
],
imports: [AvatarComponent, RouterLink, AlLocalizePipe, FastSvgComponent],
templateUrl: './article-compact-card.component.html',
})
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Component is no longer standalone

The component decorator no longer includes standalone: true. This change may require updating how this component is registered and consumed in the application.

Verify that this component is properly declared in a NgModule since it's no longer standalone. This change could potentially break module dependencies if not properly handled.


🏁 Script executed:

#!/bin/bash
# Check if the component is properly declared in a module
echo "Checking if ArticleCompactCardComponent is declared in a module..."
grep -r "ArticleCompactCardComponent" --include="*.ts" | grep -i "declarations\|exports"

Length of output: 231


Ensure ArticleCompactCardComponent is registered in an NgModule

You’ve removed standalone: true from ArticleCompactCardComponent, so it must now be declared in an NgModule. I didn’t find any references to it in a declarations or exports array:

• Add it to the appropriate module (for example libs/blog/articles/ui-article-card/ui-article-card.module.ts):

@NgModule({
  declarations: [ArticleCompactCardComponent, /* … */],
  exports:      [ArticleCompactCardComponent, /* … */],
  imports:      [/* … */],
})
export class UiArticleCardModule {}

Without this, consumers of al-article-compact-card will break at runtime.

@DDonochVA DDonochVA merged commit 3be6ade into main May 12, 2025
2 checks passed
marcin-hoa added a commit that referenced this pull request May 13, 2025
@coderabbitai coderabbitai bot mentioned this pull request May 13, 2025
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