Skip to content

[PER-10633] Replace hardcoded colors for file-browser components and generic elements from the same main screen#1085

Merged
aasandei-vsp merged 1 commit into
mainfrom
PER-10633-replace-hardcoded-colors-v2
Jul 20, 2026
Merged

[PER-10633] Replace hardcoded colors for file-browser components and generic elements from the same main screen#1085
aasandei-vsp merged 1 commit into
mainfrom
PER-10633-replace-hardcoded-colors-v2

Conversation

@aasandei-vsp

@aasandei-vsp aasandei-vsp commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This PR only replaces hardcoded colors for file-browser components and generic elements from the same main screen with variables that have identical values, so no visible change.
What I did do was visually check the app where the hardcoded colors have been replaced by variables.
It is tedious and I do not believe it needs to be done multiple times.

No QA needed.

@aasandei-vsp aasandei-vsp self-assigned this Jul 13, 2026
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.12%. Comparing base (81edefb) to head (ce9c8c0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1085      +/-   ##
==========================================
+ Coverage   52.07%   52.12%   +0.04%     
==========================================
  Files         354      354              
  Lines       12085    12085              
  Branches     2181     2181              
==========================================
+ Hits         6293     6299       +6     
+ Misses       5566     5561       -5     
+ Partials      226      225       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aasandei-vsp
aasandei-vsp force-pushed the PER-10633-replace-hardcoded-colors-v2 branch from 462175f to faba4e9 Compare July 13, 2026 09:45
@aasandei-vsp
aasandei-vsp changed the base branch from PER-10633-replace-hardcoded-colors to main July 13, 2026 10:30
@aasandei-vsp
aasandei-vsp changed the base branch from main to PER-10633-replace-hardcoded-colors July 13, 2026 10:32

@cecilia-donnelly cecilia-donnelly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

background-color: $PR-brand-white;
border-radius: 0.3rem;
box-shadow: 0 0.5rem 1rem #0000004d;
box-shadow: 0 0.5rem 1rem rgba($PR-brand-black, 0.3);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is new to me! Thanks.

@cecilia-donnelly cecilia-donnelly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Officially approving, oops.

@aasandei-vsp
aasandei-vsp force-pushed the PER-10633-replace-hardcoded-colors branch from 2d2a2e7 to 8b19715 Compare July 20, 2026 11:16
Base automatically changed from PER-10633-replace-hardcoded-colors to main July 20, 2026 11:22
Replace hard-coded color literals with the shared palette tokens across
the file-browser and core/nav component styles: $PR-blue (legacy) ->
$PR-blue-900, $white/white -> $PR-brand-white, #000/$black -> $PR-brand-black
(including rgba(0,0,0,...) shadows -> rgba($PR-brand-black, ...)), and
rgba(100,100,100,1) -> rgba($gray-dark, 1). Values are unchanged, so
there is no visual difference.

Issue: PER-10633
@aasandei-vsp
aasandei-vsp force-pushed the PER-10633-replace-hardcoded-colors-v2 branch from faba4e9 to ce9c8c0 Compare July 20, 2026 11:25
@aasandei-vsp
aasandei-vsp merged commit 4e465c6 into main Jul 20, 2026
11 checks passed
@aasandei-vsp
aasandei-vsp deleted the PER-10633-replace-hardcoded-colors-v2 branch July 20, 2026 11:27
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