Skip to content

Conversation

@Nateowami
Copy link
Collaborator

@Nateowami Nateowami commented Jan 5, 2026

Throughout our application we have color="warn" 3 times, and color="accent" 11 times. Unfortunately these and other places that would normally use the accent colors do not actually use them since the upgrade to the Material 3 theming system. We should probably find a new way to apply accent colors, but in the meantime it seems we should apply it where we intended to apply it.

Hopefully storybook will show us whether this is actually a good change to make.


This change is Reviewable

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.29%. Comparing base (c3ab541) to head (01ee455).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3621   +/-   ##
=======================================
  Coverage   83.29%   83.29%           
=======================================
  Files         611      611           
  Lines       37646    37646           
  Branches     6182     6158   -24     
=======================================
  Hits        31358    31358           
- Misses       5332     5345   +13     
+ Partials      956      943   -13     

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

Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

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

Something is not right. On the settings page the checkboxes and radio buttons use the accent colour as the default.
image.png

@RaymondLuong3 reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Nateowami).

@RaymondLuong3 RaymondLuong3 self-assigned this Jan 6, 2026
@Nateowami
Copy link
Collaborator Author

@RaymondLuong3 That's what they always used to do. It's a recent thing that they aren't green.

Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

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

Hah, I don't remember these ever being the accent colour. Hey, now you would be able to use the "warn" colour on the settings page for the delete this project button.

@RaymondLuong3 made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Nateowami).

@Nateowami
Copy link
Collaborator Author

@RaymondLuong3 You're marked as the assignee on this PR but haven't approved or requested changes. Is that intentional?

Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

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

I was waiting for a response from my previous comment. It is related to this PR. I will request that change and you can decide whether you would like to make it or not.

@RaymondLuong3 made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Nateowami).

@Nateowami Nateowami force-pushed the fix/material-themes branch from 25a2bfc to 01ee455 Compare January 27, 2026 21:50
Copy link
Collaborator Author

@Nateowami Nateowami left a comment

Choose a reason for hiding this comment

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

Done.

For what it's worth, I interpreted:

Hey, now you would be able to use the "warn" colour on the settings page for the delete this project button.

as "here's a potential idea", not a request for changes. Just letting you know how I (mis)understood it.

Here's what it currently looks like when the write-status component shows an error:

Screenshot from 2026-01-27 16-50-53.png

@Nateowami made 4 comments.
Reviewable status: 2 of 4 files reviewed, all discussions resolved (waiting on @RaymondLuong3).


src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.scss line 76 at r2 (raw file):

}

mat-icon {

As far as I could tell, the only icon being styled by this was the icon I added to the delete button.


src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.scss line 140 at r2 (raw file):

  background-color: var(--mat-sys-error);
  color: var(--mat-sys-on-error);
}

So nice to be able to get rid of all this extraneous theming...


src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.html line 368 at r2 (raw file):

            [disabled]="deleteButtonDisabled"
          >
            <mat-icon>delete</mat-icon>

I've always felt it was a bit odd there wasn't any icon on this button.

Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

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

Yes, I can see the misunderstanding. Thanks for your work on this. I'm happy to get this merged and continue updating components to use the new theming as we go.

@RaymondLuong3 reviewed 2 files and all commit messages, and made 2 comments.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Nateowami).


src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.html line 368 at r2 (raw file):

Previously, Nateowami wrote…

I've always felt it was a bit odd there wasn't any icon on this button.

Good thinking

@RaymondLuong3 RaymondLuong3 merged commit d46a077 into master Jan 28, 2026
23 checks passed
@RaymondLuong3 RaymondLuong3 deleted the fix/material-themes branch January 28, 2026 04:24
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