Skip to content
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

Restyle error ui and reconnection ui #1527

Merged
merged 6 commits into from
Jan 4, 2024

Conversation

adamint
Copy link
Member

@adamint adamint commented Jan 2, 2024

We had problems with contrast issues with dark theme for the error ui, as well as the reconnection ui, which is provided by default by the blazor framework (resolves #1464)

You can see below and after pictures below. The first image in each category is the error ui, the second the reconnecting in progress ui, and the third is the reconnection failed ui.

Before
Light theme:
image
image
image

Dark theme:
image
image
image

After
Light theme:
image
image
image

Dark theme:
image
image
image

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-codeflow for labeling automated codeflow. intentionally a different color! label Jan 2, 2024
src/Aspire.Dashboard/Components/App.razor Outdated Show resolved Hide resolved
src/Aspire.Dashboard/Components/Layout/MainLayout.razor Outdated Show resolved Hide resolved
src/Aspire.Dashboard/wwwroot/css/app.css Outdated Show resolved Hide resolved
src/Aspire.Dashboard/wwwroot/css/app.css Outdated Show resolved Hide resolved
@drewnoakes
Copy link
Member

Can the background in dark mode be darker? The screenshots make it seem quite bright.

@adamint adamint enabled auto-merge (squash) January 4, 2024 17:06
@adamint adamint merged commit 1cbea34 into dotnet:main Jan 4, 2024
8 checks passed
@@ -49,7 +49,7 @@ fluent-toolbar[orientation=horizontal] {

--error-ui-foreground-color: #000000;
--error-ui-accent-foreground-color: #512bd4;
--reconnection-ui-bg: #D1D1D1;
--reconnection-ui-bg: #D6D6D6;
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this is probably still too bright. Did you update the screenshots in your PR description with the end state here? I'd expect the bg color to be largely unchanged, just an overlay that darkens what's there and makes is easier for the error content to float over the top.

Copy link
Member Author

@adamint adamint Jan 7, 2024

Choose a reason for hiding this comment

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

@drewnoakes we are not able to make it any darker with the current foreground colors. This bg is the exact limit - note that the actual visible color is darker due to the opacity

Copy link
Member

Choose a reason for hiding this comment

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

Right, but the foreground colours are for light mode.

The thing I'm trying to avoid is flashing a large bright area in users' eyes, when they're in dark mode. A dark background with light foreground should achieve that, and meet contrast ratio requirements.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-codeflow for labeling automated codeflow. intentionally a different color!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error UI is hard to read in dark theme
5 participants