Skip to content

Conversation

mohitb35
Copy link
Collaborator

@mohitb35 mohitb35 commented Mar 25, 2025

  • Remove hardcoded font sizes and replace them with variable references for better maintainability and consistency across the codebase.
  • Adjusts font size in some places (and makes UI adjustments if needed) to reduce the number of font sizes used in the app.
  • Unique Font sizes for SF are maintained as a separate set of variables.

Copy link

vercel bot commented Mar 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
planet-webapp-multi-tenancy-setup ✅ Ready (Inspect) Visit Preview Apr 23, 2025 5:33am

Copy link
Contributor

coderabbitai bot commented Mar 25, 2025

Walkthrough

This update standardizes font sizing across the application by replacing hardcoded pixel, rem, and em values with predefined SCSS variables or theme properties. The changes span numerous SCSS and TypeScript files, updating both component-level and global styles. Several obsolete or redundant font size variables are removed from the theme configuration, and all references to these are updated accordingly. The alterations ensure that all font sizes are now sourced from a centralized theme, promoting consistency and maintainability. No logic, control flow, or exported entities are affected, as the changes are limited to styling and theme property usage.

Changes

Files/Paths (Grouped) Change Summary
src/features/common/**/*.scss, src/features/projects/**/*.scss, src/features/projectsV2/**/*.scss,
src/features/user/**/*.scss, src/tenants/planet/**/*.scss, src/tenants/salesforce/**/*.scss, src/theme/global.scss
Replaced hardcoded font-size values (px, rem, em) with SCSS variables (e.g., $fontSmall, $fontLarge, $fontXXSmall, etc.) for consistency and theming. Removed or updated obsolete selectors and cleaned up formatting/indentation. Some color values and layout properties were also updated to use theme variables.
src/features/common/InputTypes/BootstrapInput.tsx,
MaterialTextField.tsx,
MuiAutoComplete.tsx
Updated styled components to use themeProperties.fontSizes for font sizes instead of hardcoded values. Imported themeProperties as needed.
src/features/common/Layout/DashboardView/index.tsx
src/features/user/GiftFunds/GiftFundDetails.tsx
ManagePayouts/components/BankAccountDetails.tsx
PlanetCash/components/AccountDetails.tsx
Changed font size styling in styled components to use themeProperties.fontSizes instead of hardcoded values. Imported themeProperties.
src/features/user/Profile/MyContributions/GiftInfoTooltip.tsx Tooltip font size now uses themeProperties.fontSizes.fontXXSmall instead of a hardcoded value.
src/theme/_fonts.scss, src/theme/themeProperties.ts, src/theme/theme.ts Removed obsolete font size variables/properties (fontXXXXSmallNew, fontXXXSmallNew, and rem-based font sizes) from theme files and global CSS custom properties. Updated all references accordingly.
src/theme/themeStyles.ts Refactored import alias from theme to themeProperties. Updated all references and font size/weight assignments to use new theme property keys. Replaced hardcoded font size values with theme variables throughout Material UI theme configuration.
src/features/user/Profile/ProfileCard/ShareModal/ShareModal.module.scss Refactored and improved layout, spacing, and font sizing using theme variables and flexbox. Enhanced responsive design for modal and social media icons.
src/features/user/Account/AccountHistory.module.scss
RegisterTrees/RegisterModal.module.scss
Removed unused or redundant CSS classes/selectors. Updated font sizes to use theme variables. Adjusted background color for selected records.
Other files (various components and modules) Minor formatting, whitespace, and import statement adjustments to align with new theme variable usage and improve code consistency.

Sequence Diagram(s)

sequenceDiagram
    participant Component
    participant ThemeProperties
    Note over Component,ThemeProperties: On render or style computation
    Component->>ThemeProperties: Request font size variable (e.g., fontSmall)
    ThemeProperties-->>Component: Return font size value (e.g., '14px')
    Component->>Component: Apply font size via SCSS variable or styled component
    Note over Component: Font size now consistent with theme
Loading

Possibly related PRs

  • #2470: Removes unused styles from RedeemModal.module.scss, related as both PRs modify the same stylesheet for font sizing and styling consistency.
  • #2460: Updates Salesforce VTOCampaign2025 styles with new header styles and text changes, related due to overlapping impact on VTOCampaign2025 styling.
  • #2347: Refactors API helper function parameter structure, related by code-level improvements though not directly overlapping.

Suggested reviewers

  • mariahosfeld

Poem

In fields of code where styles once grew wild,
Now font sizes gather, neatly compiled.
From pixels and rems to variables they leap,
Bringing harmony, order, and theme to keep.
The rabbits rejoice as the UI aligns—
Consistency blooms in these typographic lines!
🐇✨


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.

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.

- removes rem font size variables as they will not be used
- /src/features/common
-/src/features/donations
-/src/features/projectsV2
-/src/features/user
-/src/tenants/planet/LeaderBoard
- also removes some unused classes
mohitb35 added 5 commits April 4, 2025 18:42
- adjusts font sizes to 10px where these were used
- makes minor adjustments to align interventions and site dropdown correctly in mobile view
- affects payment history, recurring subscriptions, planetcash transactions
@mohitb35 mohitb35 requested a review from sunilsabatp April 23, 2025 05:16
@mohitb35 mohitb35 marked this pull request as ready for review April 23, 2025 05:18
Copy link
Contributor

@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

🧹 Nitpick comments (6)
src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss (1)

20-20: Consider using a theme spacing variable instead of hardcoded 5px
For consistency with the design system, you might replace the literal 5px gap with a predefined spacing token (e.g. $spacing-1 or similar) rather than introducing a new hardcoded value.

src/tenants/salesforce/Mangroves/styles/Landing.module.scss (1)

106-108: Consider replacing media‑query font-size with theme variable
The font-size: 15px under @include lgLaptopView remains hardcoded. For full consistency, use an appropriate theme variable (e.g., $fontSmall or another defined size) instead.

src/features/projectsV2/ProjectsMap/MapFeatureExplorer/MapFeatureExplorer.module.scss (1)

169-173: Inconsistent variable usage
The .exploreDescription uses var(--font-xx-extra-small) instead of the SCSS variable approach used elsewhere. Consider replacing it with the corresponding SCSS variable (e.g., $fontXXSmall) for consistency.

src/features/user/TreeMapper/Analytics/components/Counter/components/CounterItem/index.module.scss (1)

14-26: Define pseudo-element separator for desktop
The &:after with mdTabletView mixin cleanly adds separators; consider extracting these values into a shared mixin if reused elsewhere.

src/features/projectsV2/ProjectsMap/InterventionDropDown/InterventionList.module.scss (2)

73-77: Avoid magic pixel offsets in positioning
Using a raw right: 30px could drift from global spacing. Consider leveraging $layoutPaddingSide or a theme spacing variable for consistency.


158-166: Use theme z-index scale
Hardcoding z-index: 50 risks stacking conflicts. Consider adopting a named z-index variable or documenting its intended layer in the theme.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 1fe767a and 705d878.

📒 Files selected for processing (75)
  • src/features/common/CarouselSlider/CarouselSlider.module.scss (1 hunks)
  • src/features/common/InputTypes/BootstrapInput.tsx (2 hunks)
  • src/features/common/InputTypes/MaterialTextField.tsx (2 hunks)
  • src/features/common/InputTypes/MuiAutoComplete.tsx (2 hunks)
  • src/features/common/LandingVideo/styles.module.scss (1 hunks)
  • src/features/common/Layout/DashboardView/index.tsx (2 hunks)
  • src/features/common/Layout/Footer/Footer.module.scss (1 hunks)
  • src/features/common/Layout/Navbar/Navbar.scss (1 hunks)
  • src/features/common/Layout/UserLayout/UserLayout.module.scss (1 hunks)
  • src/features/common/RedeemCode/SuccessfullyRedeemed.tsx (1 hunks)
  • src/features/common/RedeemCode/style/RedeemModal.module.scss (1 hunks)
  • src/features/common/TreeCounter/TreeCounter.module.scss (2 hunks)
  • src/features/common/WebappButton/WebappButton.module.scss (1 hunks)
  • src/features/donations/styles/DirectGift.module.scss (2 hunks)
  • src/features/projects/styles/PlantLocation.module.scss (2 hunks)
  • src/features/projects/styles/ProjectSnippet.module.scss (4 hunks)
  • src/features/projects/styles/ProjectsMap.module.scss (2 hunks)
  • src/features/projects/styles/VegetationChange.module.scss (1 hunks)
  • src/features/projectsV2/ProjectDetails/styles/PlantLocationInfo.module.scss (9 hunks)
  • src/features/projectsV2/ProjectDetails/styles/ProjectReviews.module.scss (1 hunks)
  • src/features/projectsV2/ProjectListControls/styles/ProjectListControls.module.scss (1 hunks)
  • src/features/projectsV2/ProjectSnippet/styles/ProjectSnippet.module.scss (5 hunks)
  • src/features/projectsV2/ProjectsMap/Credits/Credits.module.scss (1 hunks)
  • src/features/projectsV2/ProjectsMap/InterventionDropDown/InterventionList.module.scss (4 hunks)
  • src/features/projectsV2/ProjectsMap/MapFeatureExplorer/MapFeatureExplorer.module.scss (2 hunks)
  • src/features/projectsV2/ProjectsMap/MapFeatureExplorer/MobileMapSettingsLayout.module.scss (2 hunks)
  • src/features/projectsV2/ProjectsMap/MapFeatureExplorer/YearSlider/YearSlider.module.scss (1 hunks)
  • src/features/projectsV2/ProjectsMap/ProjectSiteDropDown/SiteDropdown.module.scss (3 hunks)
  • src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss (1 hunks)
  • src/features/projectsV2/ProjectsSection.module.scss (1 hunks)
  • src/features/user/Account/AccountHistory.module.scss (5 hunks)
  • src/features/user/CompleteSignup/CompleteSignup.module.scss (1 hunks)
  • src/features/user/DonationReceipt/DonationReceipt.module.scss (7 hunks)
  • src/features/user/GiftFunds/GiftFundDetails.tsx (2 hunks)
  • src/features/user/ManagePayouts/components/BankAccountDetails.tsx (2 hunks)
  • src/features/user/ManageProjects/ProjectsContainer.module.scss (1 hunks)
  • src/features/user/ManageProjects/StepForm.module.scss (2 hunks)
  • src/features/user/PlanetCash/components/AccountDetails.tsx (2 hunks)
  • src/features/user/Profile/CommunityContributions/communityContributions.module.scss (1 hunks)
  • src/features/user/Profile/ContributionsMap/Common/common.module.scss (2 hunks)
  • src/features/user/Profile/ContributionsMap/ContributionsMap.module.scss (4 hunks)
  • src/features/user/Profile/ForestProgress/ForestProgress.module.scss (8 hunks)
  • src/features/user/Profile/InfoAndCTA/InfoAndCta.module.scss (1 hunks)
  • src/features/user/Profile/MyContributions/GiftInfoTooltip.tsx (2 hunks)
  • src/features/user/Profile/MyContributions/MyContributions.module.scss (1 hunks)
  • src/features/user/Profile/ProfileCard/ProfileCard.module.scss (2 hunks)
  • src/features/user/Profile/ProfileCard/ShareModal/ShareModal.module.scss (1 hunks)
  • src/features/user/Profile/TpoProjects/TpoProjects.module.scss (1 hunks)
  • src/features/user/RegisterTrees/RegisterModal.module.scss (0 hunks)
  • src/features/user/Settings/EditProfile/AddressManagement/AddressManagement.module.scss (1 hunks)
  • src/features/user/Settings/EditProfile/EditProfile.module.scss (3 hunks)
  • src/features/user/Settings/ImpersonateUser/ImpersonateUser.module.scss (2 hunks)
  • src/features/user/TreeMapper/Analytics/components/Counter/components/CounterItem/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Analytics/components/Export/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Analytics/components/Map/components/PlantLocationDetails/index.module.scss (2 hunks)
  • src/features/user/TreeMapper/Analytics/components/Map/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Analytics/components/SpeciesPlanted/Tooltip/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Analytics/components/SpeciesPlanted/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Analytics/components/TreePlanted/Tooltip/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Analytics/components/TreePlanted/index.module.scss (1 hunks)
  • src/features/user/TreeMapper/Import/Import.module.scss (2 hunks)
  • src/features/user/TreeMapper/TreeMapper.module.scss (1 hunks)
  • src/tenants/planet/LeaderBoard/components/LeaderBoard.module.scss (1 hunks)
  • src/tenants/planet/LeaderBoard/components/Stats.module.scss (1 hunks)
  • src/tenants/planet/LeaderBoard/components/Stories.module.scss (3 hunks)
  • src/tenants/salesforce/Home/styles/Landing.module.scss (1 hunks)
  • src/tenants/salesforce/Mangroves/styles/ContentSection.module.scss (1 hunks)
  • src/tenants/salesforce/Mangroves/styles/Landing.module.scss (1 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/ContentSection.module.scss (1 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/Landing.module.scss (1 hunks)
  • src/theme/_fonts.scss (0 hunks)
  • src/theme/global.scss (5 hunks)
  • src/theme/theme.ts (0 hunks)
  • src/theme/themeProperties.ts (0 hunks)
  • src/theme/themeStyles.ts (6 hunks)
💤 Files with no reviewable changes (4)
  • src/features/user/RegisterTrees/RegisterModal.module.scss
  • src/theme/theme.ts
  • src/theme/_fonts.scss
  • src/theme/themeProperties.ts
🔇 Additional comments (198)
src/features/user/TreeMapper/TreeMapper.module.scss (1)

437-439: Consistent font sizing with theme variable. Replacing the hardcoded size with $fontXXLarge improves maintainability and aligns this component with the centralized typography definitions. Ensure $fontXXLarge is exported in your imported theme file and reflects the intended size.

src/features/projectsV2/ProjectsMap/MapFeatureExplorer/YearSlider/YearSlider.module.scss (1)

35-39: Standardize obsolete size to $fontXXSmall. The switch from the removed $fontXXXXSmallNew to $fontXXSmall keeps this slider in sync with current theme variables. Please verify the readability of the years at this size, especially on smaller screens.

src/features/user/TreeMapper/Import/Import.module.scss (2)

20-25: Centralize title font size. Changing .pageTitle from a hardcoded 2.25rem to $fontXXLarge ensures consistency across similar headings. Confirm alignment with other page titles and that this change doesn’t affect layout spacing.


47-49: Unify subtitle sizing. Replacing 1rem with $fontSixteen standardizes subtitles across the app. Validate that the line height and weight remain visually balanced at this size.

src/features/user/TreeMapper/Analytics/components/TreePlanted/index.module.scss (1)

4-6: Use theme variable for analytics title. Swapping out the hardcoded 16px for $fontSixteen in .title aligns this component with the global typography system. Font weight retention is correct.

src/features/user/TreeMapper/Analytics/components/Map/index.module.scss (1)

60-60: Replace fixed 10px with $fontXXSmall. This change brings the font size in .plantLocationDetailsContainer under the centralized theme control. Please check that the text remains legible against the map background.

src/features/common/InputTypes/MuiAutoComplete.tsx (2)

2-2: Import themeProperties for standardized font sizing
Adding the themeProperties import enables usage of centralized font size variables across components.


17-17: Use theme-based fontMedium variable
Replaced the hardcoded 18 value with themeProperties.fontSizes.fontMedium to ensure consistency with the design system.

src/features/projectsV2/ProjectsMap/Credits/Credits.module.scss (1)

7-7: Use SCSS variable for extra small font size
Swapped the fixed 11px for the $fontXSmall theme variable, aligning the .lngSwitcher text with the consolidated font scale.

src/features/projectsV2/ProjectsMap/MapFeatureExplorer/MobileMapSettingsLayout.module.scss (2)

1-1: Import theme to access SCSS font variables
Ensures the file has access to the global $fontSmall variable and other design tokens defined in the theme.


33-33: Replace hardcoded 14px with theme variable
Changed from 14px to $fontSmall to maintain a unified typography scale across responsive layouts.

src/features/common/Layout/DashboardView/index.tsx (2)

5-5: Import themeProperties for centralized styling
Bringing in themeProperties allows the component to reference the shared font-size definitions.


16-16: Use theme-based fontSixteen value
Updated fontSize from '1rem' to themeProperties.fontSizes.fontSixteen to match the theme’s 16px setting.

src/features/projects/styles/VegetationChange.module.scss (1)

56-56: Standardize superscript font size with theme variable
Replaced the fixed 8px value on the <sup> element with $fontXXSmall for consistency with other minimal text elements.

src/features/projectsV2/ProjectsSection.module.scss (1)

52-52: Approve replacing hardcoded font size with theme variable
Good update: swapping out 12px for $fontXSmall ensures typography stays consistent and maintainable.

src/features/common/LandingVideo/styles.module.scss (1)

47-47: Approve replacing fixed font size with theme variable
Swapping 16px for $fontSixteen aligns perfectly with the centralized theming strategy.

src/features/common/Layout/Footer/Footer.module.scss (1)

130-130: Approve use of theme font variable
Replacing the hardcoded 9px with $fontXXSmall is consistent with the rest of the footer typography and the global theme.

src/tenants/planet/LeaderBoard/components/Stats.module.scss (1)

43-43: Approve use of theme font variable
Good substitution of 38px with $fontXXLarge to keep the leaderboard numbers in sync with theme specifications.

src/features/common/WebappButton/WebappButton.module.scss (2)

48-48: Replace hardcoded font size with theme variable
Using the $fontSmall variable for .webappButtonLabel standardizes typography and aligns with the centralized theme.


85-85: Use appropriate theme variable for tertiary button label
Switching to $fontXSmall for tertiary buttons maintains visual hierarchy and consistency.

src/features/common/Layout/UserLayout/UserLayout.module.scss (1)

256-256: Standardize font size in sidebar navigation
Replacing the hardcoded size with $fontSmall ensures all navlink buttons adhere to the UI scale defined in the theme.

src/features/user/CompleteSignup/CompleteSignup.module.scss (1)

77-77: Adopt theme variable for page header
Changing .headerTitle to use $fontXLarge centralizes control over header sizing and matches the design system.

src/tenants/salesforce/Home/styles/Landing.module.scss (1)

113-113: Replace footnote font size with theme variable
Using $fontXSmall for .footnote aligns auxiliary text with the theme’s typography scale.

src/features/common/Layout/Navbar/Navbar.scss (1)

166-166: Apply theme-based font size to submenu text
Switching .menuText to $fontSixteen standardizes submenu typography across breakpoints.

src/features/user/GiftFunds/GiftFundDetails.tsx (2)

8-8: Standardized theme import
The new import of themeProperties aligns this component with the centralized theme setup, enabling consistent font sizing across the app.


24-24: Applied centralized font size variable
Replacing the hardcoded font size with themeProperties.fontSizes.fontSmall promotes maintainability and consistency of typography.

src/features/projectsV2/ProjectDetails/styles/ProjectReviews.module.scss (1)

16-16: Replaced hardcoded font size with SCSS variable
Using $fontXXSmall instead of a fixed pixel value ensures consistency with the theme’s typography scale.

src/tenants/planet/LeaderBoard/components/LeaderBoard.module.scss (1)

190-190: Unified font size using theme variable
Switching to $fontSmall in the .searchedUserCard span ensures typography consistency within the leaderboard component.

src/tenants/salesforce/OceanforceCampaign/styles/ContentSection.module.scss (1)

106-106: Standardized paragraph font size
Replacing 18px with the $fontMedium SCSS variable in .projectItem p aligns with the global typography system.

src/features/user/Profile/CommunityContributions/communityContributions.module.scss (1)

172-172: Updated message font size to theme variable
Switching from 0.75em to $fontXSmall centralizes typography definitions and improves maintainability.

src/tenants/salesforce/OceanforceCampaign/styles/Landing.module.scss (1)

101-101: Good replacement of hardcoded value with variable

Replacing the hardcoded font size with the $fontMedium variable improves consistency and maintainability, aligning well with the PR objective of standardizing font sizes across the application.

src/features/user/ManageProjects/ProjectsContainer.module.scss (1)

54-54: Good use of theme variable for font size

Replacing the hardcoded 16px value with the $fontSixteen variable improves maintainability and ensures consistent typography throughout the application.

src/features/user/ManagePayouts/components/BankAccountDetails.tsx (2)

8-8: Good addition of theme import

Correctly added the import for themeProperties to support the font size standardization.


18-18: Improved consistency by using theme properties

Good replacement of the hardcoded 0.875rem value with the theme property fontSmall. This change improves maintainability and ensures typography consistency across the application.

src/features/user/PlanetCash/components/AccountDetails.tsx (2)

10-10: Good addition of theme import

Correctly added the import for themeProperties to support the font size standardization.


19-19: Improved consistency by using theme properties

Good replacement of the hardcoded 0.875rem value with the theme property fontSmall. This change improves maintainability and ensures typography consistency across the application.

src/tenants/salesforce/Mangroves/styles/ContentSection.module.scss (1)

195-195: Use theme variable for project item text
Replaced a hardcoded 18px value with $fontMedium to align with the centralized typography scale and maintain consistency.

src/features/projectsV2/ProjectListControls/styles/ProjectListControls.module.scss (1)

287-287: Standardize mobile filter result font size
The hardcoded 14px is correctly replaced with $fontSmall, ensuring consistency with other mobile text elements.

src/features/user/Profile/ContributionsMap/Common/common.module.scss (2)

81-84: Use theme variable for stats font size
Replaced hardcoded 12px with $fontXSmall, matching the theme’s extra-small typography scale.


95-98: Use theme variable for donation popup text
Replaced 12px with $fontXSmall for consistency in contribution popups.

src/features/projects/styles/PlantLocation.module.scss (2)

11-11: Leverage theme variable for tree count text size
Replaced 18px with $fontMedium, aligning the tree count typography with the centralized design tokens.


134-134: Minor formatting clean-up by removing a redundant space before the rgba color value; no other changes to behavior or design.

src/features/common/InputTypes/MaterialTextField.tsx (1)

29-29: Source font size from themeProperties
Replacing the hardcoded '14px' with themeProperties.fontSizes.fontSmall ensures the input label typography adheres to the centralized design tokens.

src/features/common/CarouselSlider/CarouselSlider.module.scss (7)

1-2: Import theme variables: Adding @import '../../../theme/theme'; at the top enables use of SCSS theme variables like $fontLarge. The import path looks correct.


4-6: Formatting adjustments in .carouselSliderContainer (indentation and gap) only; no functional impact.


12-16: Media query formatting for .carouselHeader; unrelated to font-size changes.


20-22: Use theme variable for title font size: Replaced hardcoded 22px with $fontLarge as intended; aligns with centralized typography.


26-30: Styling in .arrowContainer > button unchanged aside from formatting; skip.


32-35: SVG styling under .arrowContainer only; no effect on typography.


37-38: Media query for .arrowContainer (display: none) formatting only.

src/features/user/Profile/MyContributions/MyContributions.module.scss (1)

65-70: Consistent small font usage: Updated .contributionCountOverflow font-size to $fontXXSmall (formerly 10px). Please confirm that $fontXXSmall correctly maps to the 10px size in the theme and matches other small-text components.

src/features/user/Settings/EditProfile/AddressManagement/AddressManagement.module.scss (1)

138-143: Replace hardcoded font size with theme variable: Changed .toggleContainer font-size to $fontSmall (was 14px). This ensures form text consistency; verify it matches the design spec.

src/features/projects/styles/ProjectsMap.module.scss (2)

530-536: Use $fontXSmall for .lngSwitcher: Swapped hardcoded 11px for $fontXSmall. This centralizes typography; please check legibility at its fixed bottom‑right position on various screen sizes.


606-610: Use $fontSmall for .clickForDetails: Good replacement of hardcoded 14px with theme variable. Ensure the button label remains properly aligned and accessible after the change.

src/features/common/InputTypes/BootstrapInput.tsx (2)

4-4: Import themeProperties module: Added import themeProperties from '../../../theme/themeProperties'; to pull in centralized font size definitions. The import path is correct.


23-23: Apply theme-driven fontSize: Replaced literal 14 with themeProperties.fontSizes.fontSmall, aligning the input’s font size with the global theme.

src/features/common/RedeemCode/style/RedeemModal.module.scss (1)

62-75: Standardized font sizing with theme variables is correct
The replacement of the hardcoded font-size: 25px with $fontLarge and the new .subText nested style using $fontMedium align perfectly with our typography guidelines and the component’s updates.

src/features/user/Profile/MyContributions/GiftInfoTooltip.tsx (2)

4-4: Add themeProperties import
Importing themeProperties is necessary to source font sizes from the centralized theme instead of hardcoding values.


14-14: Verify tooltip font size value
Ensure that themeProperties.fontSizes.fontXXSmall returns a valid CSS font-size (either a string with units like "12px" or a numeric value interpreted correctly by MUI).

src/features/common/RedeemCode/SuccessfullyRedeemed.tsx (2)

34-34: Apply .subText class to membership success message line 2
Adding className={styles.subText} for the second line in the membership redemption message correctly ties into the new SCSS styling.


38-38: Apply .subText class to general success message line 2
The same enhancement for non‑membership redemption messages ensures consistent styling across both variants.

src/features/user/TreeMapper/Analytics/components/Export/index.module.scss (4)

3-6: Layout container styling is clean
The .container block’s flex layout and spacing are correct and maintain consistency with related components.


9-13: Date picker container adjustments look good
.datePickerContainer uses appropriate flex properties and spacing, matching design requirements.


16-17: Button container width is appropriate
Fixing the width on .buttonContainer aligns with the UI spec for the export panel actions.


21-23: Substitute fixed 16px with $fontSixteen
Replacing font-size: 16px with the $fontSixteen variable standardizes typography across analytics components.

src/features/donations/styles/DirectGift.module.scss (2)

39-39: Update link color to $primaryDarkColor
Switching the anchor color in .giftTo a to $primaryDarkColor enhances contrast and follows the theme’s color palette.


48-48: Use $fontLarge for the project selection label
Replacing the hardcoded 20px with $fontLarge ensures consistency with the global font size scale.

src/features/user/TreeMapper/Analytics/components/Map/components/PlantLocationDetails/index.module.scss (2)

40-40: Replace hardcoded font-size with theme variable
Changing font-size: 10px to $fontXXSmall aligns this component with the centralized typography system, improving maintainability and consistency.


76-76: Use theme variable for header font-size
Swapping font-size: 12px for $fontXSmall ensures uniform typography across similar components.

src/features/user/TreeMapper/Analytics/components/TreePlanted/Tooltip/index.module.scss (3)

13-14: Use theme variable for title font-size
Replacing the hardcoded font-size with $fontXSmall brings this tooltip into compliance with our global typography scale.


31-33: Standardize body title font-size
Updating .bodyTitle to use $fontXSmall removes another hardcoded value and maintains consistency.


35-38: Use theme variable for value font-size
Switching the .value font-size to $fontXSmall ensures all text in this tooltip follows the same design system rules.

src/tenants/salesforce/Mangroves/styles/Landing.module.scss (1)

101-101: Replace hardcoded paragraph font-size with theme variable
Switching from 18px to $fontMedium centralizes typography definitions and simplifies future updates.

src/features/user/Profile/TpoProjects/TpoProjects.module.scss (1)

37-40: Allow full-width projects on extra-small phones
Adding max-width: none in the xsPhoneView media query ensures project cards can expand to the viewport width on small devices, improving the mobile layout.

src/features/user/Profile/ProfileCard/ProfileCard.module.scss (2)

73-73: Use theme variable for heading font-size
Replacing the fixed font-size with $fontXLarge standardizes heading scales across profile components.


87-87: Use theme variable for description text
Switching the paragraph font-size to $fontXSmall aligns descriptive text with our design system’s small size.

src/features/projectsV2/ProjectsMap/MapFeatureExplorer/MapFeatureExplorer.module.scss (2)

102-108: Standardized font sizing for explore items
Replacing the hardcoded value with $fontXSmall ensures consistent typography aligned with the theme. Please verify that $fontXSmall is defined in your _fonts.scss.


145-152: Consistent popup typography
Using $fontXXSmall for the layer info popup maintains the design system’s scale. This matches the PR’s theming strategy.

src/features/user/TreeMapper/Analytics/components/SpeciesPlanted/Tooltip/index.module.scss (3)

12-15: Replaced hardcoded title size
Switching .title from 12px to $fontXSmall aligns with the theme’s font scale.


32-34: Themed subtitle sizing
Updating .bodyTitle to use $fontXSmall keeps font sizes consistent across tooltips.


36-39: Unified value font style
Using $fontXSmall for .value ensures the data matches the design system’s scale.

src/features/user/Settings/ImpersonateUser/ImpersonateUser.module.scss (1)

11-14: Use theme variable for font size
Replacing 10px with $fontXXSmall standardizes the alert text size to the theme’s scale.

src/features/user/DonationReceipt/DonationReceipt.module.scss (7)

138-146: Themed error message font
Switching the .errorMessage to $fontXSmall matches the design system’s typography for error states.


274-281: Consistent header sizing
Using $fontLarge for .contactManagementHeader ensures consistency with other major headings.


305-312: Standardized address error font
Applying $fontXSmall to the .errorMessage in the address section aligns with the theme’s error text sizing.


385-390: Unified list header typography
Updating .receiptListHeader to $fontLarge maintains header hierarchy consistency.


421-428: Themed donation amount display
Using $fontXLarge for the card’s amount emphasizes the donation values per the theme guidance.


485-490: No-receipt state font alignment
Standardizing the .noReceiptFound font to $fontXSmall keeps the UI unified.


519-524: Themed alert text
Replacing hardcoded sizes with $fontXSmall for the login alert follows the project’s typography rules.

src/tenants/planet/LeaderBoard/components/Stories.module.scss (4)

33-37: Elevated title font size
Switching the story title’s font from a fixed value to $fontXLarge ensures it scales correctly across breakpoints.


45-51: Themed descriptor text
Using $fontXSmall for the descriptor paragraph (p) aligns this component with the design system’s small-text usage.


68-71: Responsive title scaling
Adopting $fontXXLarge under mdTabletView harmonizes the title’s large-screen font size with the theme.


73-76:

✅ Verification successful

Verify custom variable $fontSixteen
This mixin uses $fontSixteen, which deviates from the established naming pattern ($fontXSmall, $fontSmall, etc.). Please confirm that this variable is defined in _fonts.scss and consider renaming or replacing it with the standard theme variable to maintain consistency.


🏁 Script executed:

#!/bin/bash
# Verify existence and definition of $fontSixteen in the theme
rg '\$fontSixteen' -n src/theme/_fonts.scss

Length of output: 82


🏁 Script executed:

#!/bin/bash
# List all font size variables to verify naming conventions and identify alternatives
rg '\$font' -n src/theme/_fonts.scss

Length of output: 377


Confirmed $fontSixteen Is Intentional and Defined
$fontSixteen is explicitly defined in src/theme/_fonts.scss (line 5), matching the CSS variable --font-sixteen. There is no alternative “standard” font‑size variable for 16px in the theme, so using $fontSixteen here is correct and consistent with the existing CSS vars.

src/features/user/Settings/EditProfile/EditProfile.module.scss (4)

40-41: Replacement with theme variable is appropriate
Using $fontXSmall instead of a hardcoded 0.75rem improves consistency and maintainability.


137-141: Standardized large heading font
Switching to $fontLarge aligns this h2 design with the centralized theme scale.


143-147: Small label font sizing
The use of $fontSmall for consent setting labels matches the theme’s small font tier.


165-170: Button text font size replaced
Applying $fontSixteen for the primary buttons ensures uniform call‑to‑action typography.

src/features/user/Profile/ContributionsMap/ContributionsMap.module.scss (7)

1-1: Importing theme variables
Validates the correct path for centralized SCSS variables import.


58-61: Applying extra small font
Replacing the hardcoded size with $fontXSmall for .trees maintains design consistency.


63-67: XXSmall font for location text
Using $fontXXSmall for .countryAndTpo fits the secondary text style.


85-90: Project name font sizing
Switching to $fontXXSmall ensures legibility over images while keeping typography consistent.


105-109: Standardized small font for tree count
Applying $fontSmall for .registeredTrees aligns with other small data points.


111-115: XXSmall label font
Using $fontXXSmall for .registeredTreeLabel provides a clear hierarchy.


117-120: XXSmall date font
Replacing the fixed pixel size with $fontXXSmall is consistent with theme guidelines.

src/features/user/TreeMapper/Analytics/components/SpeciesPlanted/index.module.scss (3)

1-1: Import path update
Correct relative import to the shared theme file for SCSS variables.


3-6: Formatting consistency for italics
No styling change; braces and indentation now align with project SCSS conventions.


7-10: Title font size standardized
Replacing 16px with $fontSixteen improves maintainability and theme consistency.

src/features/projects/styles/ProjectSnippet.module.scss (5)

14-20: Refactored edit button font sizing
Switching to $fontXSmall for .projectEditBlock matches other UI controls.


150-157: Badge font size alignment
Using $fontXSmall in .topProjectBadge keeps badge text uniform across components.


205-211: Target amount font size standardized
Applying $fontXSmall for .target supports a consistent numeric hierarchy.


213-220: Project TPO name font size
$fontXXSmall fits secondary text requirements and pairs well with the badge styling.


300-304: Hover icon font size consistency
Using $fontXXSmall for .projectHoverIcon ensures uniform icon label sizing.

src/features/user/Profile/ForestProgress/ForestProgress.module.scss (8)

49-55: Graph label font size
Replacing with $fontXSmall aligns chart labels with theme typography levels.


66-69: Community received font size
Applying $fontXXSmall for less prominent data points maintains clarity.


84-90: Statistic value font size
Using $fontXSmall for .stat highlights key numbers without breaking the theme scale.


98-102: Editable label font scaling
$fontXXSmall for .editTargetLabel provides a compact but readable label size.


131-139: Save button font size
Switching to $fontSixteen ensures the primary action stands out consistently.


174-180: Icon label font size
Applying $fontXSmall in .targetInputIconMainContainer .label aligns with other icon text.


188-196: Modal target label font
$fontSixteen for .setTargetLabel makes the dialog label prominent and consistent.


228-236: Set target button font size
Using $fontSixteen for .setTargetButton matches other primary actions in this module.

src/features/common/TreeCounter/TreeCounter.module.scss (2)

121-126: Standardize font sizes using theme variables
Great replacement of hardcoded values with $fontXXLarge and its responsive counterpart $fontLarge, enhancing consistency and maintainability.


142-147: Use consistent theme-based font sizes for tree counts
Switching to $fontXLarge and $fontXSmall in the responsive mixin aligns with the centralized typography scale.

src/features/projectsV2/ProjectSnippet/styles/ProjectSnippet.module.scss (5)

127-129: Replace hardcoded badge font size with $fontXSmall
Adopting the theme token in .topProjectBadge ensures alignment with design specifications.


182-187: Standardize .target font-size to $fontXSmall
Consistent use of the theme variable replaces the magic number and unifies text sizing across components.


192-196: Consolidate .projectTpoName font size using $fontXXSmall
Using a predefined token instead of a hardcoded value enhances readability and theming.


223-228: Update .perUnitCost to use theme-based font settings
Switching to $primaryFontFamily and $fontXSmall aligns this text block with the primary design system.


259-263: Normalize .projectHoverIcon font-size with $fontXXSmall
Replacing the removed size variable with a standardized token maintains consistency in hover-state labels.

src/features/user/TreeMapper/Analytics/components/Counter/components/CounterItem/index.module.scss (4)

4-9: Introduce theme-based container styles
Applying $backgroundColor, consistent padding, and centering improves maintainability and aligns with global theming.


10-12: Hide divider on last child
The &:last-child::after { display: none; } effectively removes unwanted separators—nice detail.


28-37: Extend separator styling to large screens
The new media query ensures consistent divider behavior on tall viewports. Verify there are no overlapping rules that might override this.


40-43: Use theme variable for quantity font size
Switching to $fontXXLarge standardizes the numeric display with the rest of the theme.

src/features/projectsV2/ProjectsMap/InterventionDropDown/InterventionList.module.scss (3)

37-44: Standardize label font size using $fontXXSmall
Replacing the deleted variable with a theme token keeps typography uniform across intervention labels.


138-141: Define consistent dropdown height for mobile
Adding height: 40px under xsPhoneView is clear—please verify it accommodates all button text without clipping.


167-170: Consistent list item font size adoption
Applying $fontXXSmall in the responsive view keeps list entries aligned with the design system.

src/features/projectsV2/ProjectDetails/styles/PlantLocationInfo.module.scss (13)

20-23: Normalize .treeCount font size to $fontSmall
Great substitution of the hardcoded 12px with a theme token.


29-32: Normalize .interventionTitle font size to $fontSmall
Using $fontSmall aligns section headers with global typography standards.


38-40: Apply $fontSmall to .hid class
Replacing raw 12px with a theme value improves consistency for hidden labels.


43-47: Standardize .plantingDetailsGroup font size with $fontXSmall
Adapting to a theme token removes magic numbers and unifies small text groups.


50-53: Use $fontXSmall for .otherInterventionGroup text
Aligns auxiliary group text sizing to the design system.


69-72: Replace magic pixel with $fontXSmall in .label
Switching to the theme metric ensures label text scales appropriately.


73-78: Unify font size for .showWholeArea and .data
Adopting $fontXSmall for minor text elements enforces consistency across interactive labels.


90-93: Apply $fontXSmall to .speciesContainer
Consistent theme variable usage for section headings enhances UI uniformity.


110-115: Use $fontXSmall for .treeMetrics p
Replacing 14px with the token matches the global scale for metric details.


121-125: Standardize .sampleTreesContainer font size
Updating to $fontXSmall removes hardcoding and aligns with design tokens.


145-147: Replace raw size with $fontXSmall in .scientificNameContainer
Ensures scientific names and data metrics follow the theme’s small text standard.


168-170: Adopt $fontXSmall for .treeMapperLabelSubContainer text
Switching to the theme token maintains consistent tooltip and label sizes.


181-184: Use $fontSmall for .singlePlantLocationHeading
Replacing the hardcoded value with a theme variable improves maintainability.

src/features/user/ManageProjects/StepForm.module.scss (3)

7-7: Consistent font sizing via theme variable
Replacing the hardcoded 14px with $fontSmall ensures this input adornment aligns with the global typography scale and improves maintainability.


11-12: Use centralized XXL font variable
Changing from 40px to $fontXXLarge and adding a fixed height: 56px maintains visual emphasis while adhering to the theme’s sizing system.


775-775: Standardize button typography
Switching from 1rem to $fontSixteen for the skip/save buttons leverages the theme’s defined font size and guarantees consistency across components.

src/theme/global.scss (6)

43-43: Apply theme font size to body
Moving from a hardcoded value to $fontSmall for the body tag centralizes typography control and prevents scattershot overrides.


359-359: Use theme variable for profile page title
Replacing the explicit size with $fontXXLarge standardizes heading sizes and supports future global adjustments.


365-365: Standardize profile subtitle font size
Switching to $fontSixteen ensures subtitles follow the theme’s medium text sizing.


662-662: Enable Firefox number-input style reset
Adding -moz-appearance: textfield complements the existing WebKit rules and fully removes number spinners across browsers.


715-715: Override MUI body1 with theme font
Using $fontSmall for .MuiTypography-body1 unifies MUI’s default text with the custom design system.


751-751: Consistent sizing for access‑denied heading
Applying $fontXLarge to the <h2> in .accessDeniedContainer aligns error pages with the global style guide.

src/features/projectsV2/ProjectsMap/ProjectSiteDropDown/SiteDropdown.module.scss (4)

30-30: Update label to theme variable
Switching .sitesLabel from a deprecated $fontXXXSmallNew to $fontXXSmall ensures consistency with the consolidated font-size palette.


124-125: Fix dropdown button height for mobile
Setting height: 40px in the xsPhoneView media query stabilizes the button’s tap area without hardcoding the desktop dimensions.


146-148: Align dropdown panel and manage stacking context
Changing horizontal alignment from right to left: 0 and adding z-index: 50 correctly positions the options menu under the trigger and ensures it appears above other elements.


153-153: Use standardized font size for list items
Replacing the old custom size with $fontXXSmall in .listItem maintains legibility and matches the revised scale.

src/features/user/Profile/InfoAndCTA/InfoAndCta.module.scss (19)

1-1: Import theme file for variable access
Adding @import '../../../../theme/theme'; ensures all color and font-size variables are available in this stylesheet.


3-7: Convert container to flex with theme-based layout
Defining .infoAndCtaContainer as a column flexbox with gap and padding driven by variables or constants improves structure and responsiveness.


10-12: Ensure full‑width containers
Applying width: 100% to both .publicProfileActionContainer and .SDGCardListContainer leverages variable-driven layouts for consistent spacing.


15-18: Standardize profile action layout
Switching .publicProfileActionContainer to a column flex layout with a $gap value aligns cards vertically on all breakpoints.


22-29: Use theme sizes for SDG card container
Defining .singleSDGCardContainer as a centered flex column and replacing hardcoded paddings and gaps with variables enhances maintainability.


31-35: Scale SDG card image responsively
Applying full‑width & height with border-radius via variables ensures consistent image handling across contexts.


39-45: Consolidate card title sizes under theme
The base size $fontXXSmall and responsive overrides to $fontSixteen/$fontMedium adhere to the theme’s scale without hardcoded px values.


52-67: Optimize icon container with theme breakpoints
Using flex layout and applying max‑height/width adjustments in the small-screen media query keeps icons legible while leveraging theme-friendly values.


71-77: Uniform header typography
Setting .headerTitle to $fontLarge with weight 600 in .publicProfileActionsHeader follows the standardized heading hierarchy.


81-85: Center action cards container
Adding flex display, gap, and width adjustments under $gap variables gives the action cards consistent spacing and centering.


88-96: Leverage theme for profile card imagery
Imposing flex: 1 and consistent hover transformations on the image container standardizes interactivity and spacing.


100-102: Cap text container width
Using max-width: 250px driven by design tokens ensures text blocks are readable and aligned.


105-112: Standardize profile card title
Applying $fontMedium and using responsive breakpoints with $fontSixteen for .singleProfileActionCardTitle maintains consistency across viewports.


115-121: Apply theme font for card text
Switching to $fontSmall and responsive $fontXSmall on .singleProfileActionCardText aligns with the refined typographic scale.


124-127: Responsive stack for card container
Changing .publicProfileActionCardsContainer to a column layout under 700px using theme‑based gap values ensures usability on small screens.


129-137: Center header on narrow viewports
Adjusting .publicProfileActionsHeader to column alignment with centered text enhances readability on mobile devices.


139-141: Fluid text container on mobile
Allowing .profileCardTextContainer to expand to 100% ensures no overflow issues on small screens.


143-148: Maintain title readability on narrow screens
Retaining $fontMedium size and centering .singleProfileActionCardTitle under the small‑viewport media query preserves hierarchy and consistency.


150-154: Adjust card text for mobile legibility
Switching to $fontSixteen and centering text in .singleProfileActionCardText improves readability on devices ≤700px.

src/features/user/Account/AccountHistory.module.scss (4)

168-168: Set status badge font size
Applying $fontXSmall to the .status element ensures the badge text is compact yet legible, matching other small labels.


236-236: Standardize filter header typography
Replacing hardcoded size with $fontMedium in .filterContainer > .header aligns header text with the theme.


480-480: Unify donation option text size
Using $fontSmall for each .option under .donationOptions provides a consistent button-style label.


690-690: Apply theme base font to records
Switching record container text to $fontSmall ensures uniformity with other list items and improves readability.

src/theme/themeStyles.ts (7)

3-3: Import alias update looks good.

The import alias has been updated from theme to themeProperties, which is a more descriptive name that better reflects its purpose.


14-16: Theme property references updated correctly.

The palette's primary color properties now properly reference the centralized theme properties, which improves consistency.


19-20: Background color references updated properly.

The background colors now reference the theme properties, aligning with the PR objective of centralizing style definitions.


23-23: Error and text color references updated appropriately.

The error and text color references now properly use the theme properties, which ensures consistency across the application.

Also applies to: 26-26


44-44: Typography font sizes standardized with theme variables.

All typography font sizes have been successfully updated to use theme property references instead of hardcoded values, which improves maintainability and consistency.

Also applies to: 47-48, 51-51, 59-59


80-80: Font weight and warning color references updated correctly.

The button components now properly use theme properties for font weight and warning color, contributing to the standardization effort.

Also applies to: 83-83


91-91: Component-specific font sizes updated with theme variables.

All component-specific font sizes (MuiTab, MuiAutocomplete, MuiFormControlLabel) have been successfully updated to use theme property references instead of hardcoded values.

Also applies to: 122-122, 141-141

src/features/user/Profile/ProfileCard/ShareModal/ShareModal.module.scss (8)

4-13: Layout improvements with flexbox properties.

The modal popup layout has been improved with flexbox properties, enhancing its structure and responsiveness. The properties are properly aligned and well-organized.


14-30: Copy button styling updated with consistent properties.

The copy button styling has been refined with proper padding, border-radius, and other properties. The font size now uses the $fontSixteen variable instead of a hardcoded value, aligning with the PR objective.


34-49: Social media icon container layout improved.

The social media icon container now uses flexbox for better layout organization. The gap property provides consistent spacing between elements.


40-44: Heading styles standardized with theme variable.

The heading now uses the $fontSixteen variable instead of a hardcoded font size, maintaining consistency with the theme.


51-58: Social media icon dimensions properly defined.

The social media icon dimensions are now explicitly set with appropriate width and height values, ensuring consistent sizing.


62-68: Share link container layout enhanced.

The share link container now uses flexbox for better organization, with appropriate gap and alignment properties.


71-87: Tablet view responsive adjustments properly implemented.

The tablet view now has appropriate responsive adjustments, including proper sizing for the modal popup and social media icons. The layout changes from column to row for the share link container, improving the tablet user experience.


90-109: Phone view responsiveness improved with theme font variable.

The phone view now has better responsive styling, including properly sized icons and buttons. The button font size uses the $fontSmall theme variable instead of a hardcoded value, in line with the PR objective.

gap: 2vw;
gap: 5px;
right: 10px;
z-index: 2px;
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix invalid z-index unit
z-index expects an integer value, not a length. Update as follows:

-  z-index: 2px;
+  z-index: 2;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
z-index: 2px;
z-index: 2;

Copy link
Contributor

@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: 0

🧹 Nitpick comments (2)
src/theme/_fonts.scss (1)

12-27: Introduce dedicated SF font size variables for consistency

This block cleanly centralizes Salesforce‐specific font sizes, grouping base and display sizes into theme variables and removing the older CSS custom property fallbacks. It promotes maintainability by defining all SF sizes in one place.

However, the inline comments for $sfFontDisplay4 (// Display text level 5) and $sfFontDisplay5 (// Display text level 6) don’t align with the variable numbering (Display4 vs. “level 5”, Display5 vs. “level 6”). Please correct these comments to match the variable names (e.g., “Display text level 4” and “Display text level 5”) to avoid confusion.

src/tenants/salesforce/Home/styles/ClimateAction.module.scss (1)

28-28: Inconsistent variable usage in responsive breakpoint

You’ve replaced the base h3 font size with $sfFontLarge (24px) — good. But inside the @include lgLaptopView block, the font size is still set to the old $fontXXLarge. For consistency with Salesforce‐specific tokens, consider using one of the new $sfFont… variables (e.g. $sfFontXL or $sfFontXXL) that maps to the intended px value.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 705d878 and ae48b82.

📒 Files selected for processing (36)
  • src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss (1 hunks)
  • src/tenants/salesforce/Home/styles/ClimateAction.module.scss (4 hunks)
  • src/tenants/salesforce/Home/styles/ContentSection.module.scss (5 hunks)
  • src/tenants/salesforce/Home/styles/GrowingImpact.module.scss (4 hunks)
  • src/tenants/salesforce/Home/styles/Landing.module.scss (4 hunks)
  • src/tenants/salesforce/Home/styles/LeaderBoardSection.module.scss (2 hunks)
  • src/tenants/salesforce/Home/styles/SeaOfTrees.module.scss (5 hunks)
  • src/tenants/salesforce/Home/styles/Social.module.scss (2 hunks)
  • src/tenants/salesforce/Home/styles/Timeline.module.scss (3 hunks)
  • src/tenants/salesforce/Mangroves/styles/AdditionalContent.module.scss (2 hunks)
  • src/tenants/salesforce/Mangroves/styles/BlueCarbon.module.scss (4 hunks)
  • src/tenants/salesforce/Mangroves/styles/ContentSection.module.scss (3 hunks)
  • src/tenants/salesforce/Mangroves/styles/Landing.module.scss (3 hunks)
  • src/tenants/salesforce/Mangroves/styles/ProjectGrid.module.scss (3 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/AdditionalContent.module.scss (2 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/ContentSection.module.scss (4 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/Landing.module.scss (3 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/LeaderBoardSection.module.scss (2 hunks)
  • src/tenants/salesforce/OceanforceCampaign/styles/ParticipationSection.module.scss (6 hunks)
  • src/tenants/salesforce/TreeCounter/TreeCounter.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2023/styles/AdditionalInfo.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2023/styles/ContentSection.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2023/styles/Landing.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2023/styles/LeaderBoardSection.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2023/styles/ProjectGrid.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2024/styles/AdditionalInfo.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2024/styles/ContentSection.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2024/styles/Landing.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2024/styles/LeaderBoardSection.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2024/styles/ProjectGrid.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2025/styles/AdditionalInfo.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2025/styles/ContentSection.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2025/styles/Landing.module.scss (3 hunks)
  • src/tenants/salesforce/VTOCampaign2025/styles/LeaderBoardSection.module.scss (2 hunks)
  • src/tenants/salesforce/VTOCampaign2025/styles/ProjectGrid.module.scss (3 hunks)
  • src/theme/_fonts.scss (1 hunks)
✅ Files skipped from review due to trivial changes (27)
  • src/tenants/salesforce/VTOCampaign2025/styles/AdditionalInfo.module.scss
  • src/tenants/salesforce/VTOCampaign2024/styles/AdditionalInfo.module.scss
  • src/tenants/salesforce/Home/styles/Social.module.scss
  • src/tenants/salesforce/VTOCampaign2023/styles/LeaderBoardSection.module.scss
  • src/tenants/salesforce/VTOCampaign2024/styles/Landing.module.scss
  • src/tenants/salesforce/VTOCampaign2023/styles/ContentSection.module.scss
  • src/tenants/salesforce/VTOCampaign2024/styles/ContentSection.module.scss
  • src/tenants/salesforce/VTOCampaign2024/styles/LeaderBoardSection.module.scss
  • src/tenants/salesforce/Home/styles/LeaderBoardSection.module.scss
  • src/tenants/salesforce/VTOCampaign2023/styles/AdditionalInfo.module.scss
  • src/tenants/salesforce/Home/styles/SeaOfTrees.module.scss
  • src/tenants/salesforce/VTOCampaign2025/styles/LeaderBoardSection.module.scss
  • src/tenants/salesforce/VTOCampaign2024/styles/ProjectGrid.module.scss
  • src/tenants/salesforce/OceanforceCampaign/styles/ParticipationSection.module.scss
  • src/tenants/salesforce/VTOCampaign2023/styles/Landing.module.scss
  • src/tenants/salesforce/VTOCampaign2025/styles/Landing.module.scss
  • src/tenants/salesforce/VTOCampaign2025/styles/ContentSection.module.scss
  • src/tenants/salesforce/VTOCampaign2025/styles/ProjectGrid.module.scss
  • src/tenants/salesforce/Home/styles/Timeline.module.scss
  • src/tenants/salesforce/Mangroves/styles/BlueCarbon.module.scss
  • src/tenants/salesforce/Mangroves/styles/ProjectGrid.module.scss
  • src/tenants/salesforce/Home/styles/GrowingImpact.module.scss
  • src/tenants/salesforce/Mangroves/styles/AdditionalContent.module.scss
  • src/tenants/salesforce/Home/styles/ContentSection.module.scss
  • src/tenants/salesforce/OceanforceCampaign/styles/AdditionalContent.module.scss
  • src/tenants/salesforce/OceanforceCampaign/styles/LeaderBoardSection.module.scss
  • src/tenants/salesforce/VTOCampaign2023/styles/ProjectGrid.module.scss
🚧 Files skipped from review as they are similar to previous changes (6)
  • src/tenants/salesforce/Mangroves/styles/Landing.module.scss
  • src/features/projectsV2/ProjectsMap/ProjectsMap.module.scss
  • src/tenants/salesforce/OceanforceCampaign/styles/ContentSection.module.scss
  • src/tenants/salesforce/Home/styles/Landing.module.scss
  • src/tenants/salesforce/OceanforceCampaign/styles/Landing.module.scss
  • src/tenants/salesforce/Mangroves/styles/ContentSection.module.scss
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (7)
src/tenants/salesforce/Home/styles/ClimateAction.module.scss (3)

52-52: Approve: Base paragraph small element mapping

Replacing the hardcoded 15px on p small with $sfFontBase (15px) correctly aligns with the new theme variable.


70-70: Approve: Uppercase label font size

Mapping the span’s 11px to $sfFontXS is accurate and standardizes the styling.


82-82: Approve: Subheading font size

Updating h4 from 20px to $sfFontMedium (20px) correctly applies the theme variable.

src/tenants/salesforce/TreeCounter/TreeCounter.module.scss (4)

13-13: Approve: Footnote font-size standardization

Replacing the hardcoded 13px with $sfFontSmall ensures consistency with the centralized SF font tokens.


30-30: Approve: Counter base font-size update

Switching 70px to $sfFontDisplay2 (70px) correctly leverages the new display‐level token.


33-33: Approve: Tablet breakpoint font-size

Using $sfFontDisplay4 (100px) inside @include mdTabletView aligns with the intended responsive size.


37-37: Approve: Desktop breakpoint font-size

Applying $sfFontDisplay5 (170px) within @include lgLaptopView properly replaces the hardcoded 170px.

$fontXXXSmallNew: var(--font-xxx-extra-small-new);
$fontXXXXSmallNew: var(--font-xxxx-extra-small-new);

// SF font sizes
Copy link
Contributor

Choose a reason for hiding this comment

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

If the naming convention $sfFont... reflects a specific design system (e.g., "SF" for Salesforce fonts), consider documenting this explicitly in the comments for future developers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The comment I've left indicates this sufficiently, and it is an isolated case, for now.

@mohitb35 mohitb35 merged commit 2cf86b8 into develop Apr 23, 2025
6 checks passed
@mohitb35 mohitb35 deleted the feature/rationalize-fonts branch April 23, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants