Skip to content

Improve Inactive Tab Readability#1533

Merged
demiankatz merged 3 commits into
devfrom
TabText
Aug 26, 2025
Merged

Improve Inactive Tab Readability#1533
demiankatz merged 3 commits into
devfrom
TabText

Conversation

@K8Sewell

@K8Sewell K8Sewell commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Summary

Inactive tab font colors were difficult to read when in 'Dark Mode'. This PR updates the font colors for the not active tabs for improved accessibility.

Screenshots

Details

Top Tabs

Before

image

After

image

Lower Tabs

Before

image

After

image

@vercel

vercel Bot commented Aug 22, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
universalviewer Ready Ready Preview Comment Aug 22, 2025 8:22pm

Comment thread src/index.html Outdated
background: none;
cursor: pointer;
background-color: white;
color: ButtonFace;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addition of color property to .tab button class

Comment thread src/index.html

.tab button.active {
background-color: ButtonFace;
color: ButtonText;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addition of color property to .tab button.active class

Comment thread src/index.html
font-weight: 400;
font-size: 1.25rem;
color: rgba(0, 0, 0, 0.73);
color: ButtonText;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changes color property to variable

@demiankatz

Copy link
Copy Markdown
Contributor

Thanks, @K8Sewell! What linter did all of the reformatting on this file? I think all of the changes are significant improvements, but I'm wondering if we should try to find a way to automate these changes in future. Ideally, it would be nice to add a tool to automatically validate the formatting, and apply the formatting changes in a separate PR so that this one can more clearly highlight what has actually changed. (I appreciate that you used comments to point this out, but if reviewing Git diffs in future, it might still be a bit obfuscated).

I'm not trying to create endless amounts of extra work for you, and I could be pretty easily persuaded to merge this as-is, but if we want to do this "the right way" I think breaking apart the linting from other changes might be a little better. :-)

@demiankatz

Copy link
Copy Markdown
Contributor

@K8Sewell, I should also note that your changes appear to have been necessitated by having a "dark mode" setting in your browser. When I look at this in Firefox in "light mode," the unselected bottom tabs are quite hard to see:

image

@K8Sewell

Copy link
Copy Markdown
Contributor Author

Thanks, @K8Sewell! What linter did all of the reformatting on this file? I think all of the changes are significant improvements, but I'm wondering if we should try to find a way to automate these changes in future. Ideally, it would be nice to add a tool to automatically validate the formatting, and apply the formatting changes in a separate PR so that this one can more clearly highlight what has actually changed. (I appreciate that you used comments to point this out, but if reviewing Git diffs in future, it might still be a bit obfuscated).

I'm not trying to create endless amounts of extra work for you, and I could be pretty easily persuaded to merge this as-is, but if we want to do this "the right way" I think breaking apart the linting from other changes might be a little better. :-)

No, agreed. The opinions of the linter should be separate. Can absolutely break those out for easier future reading.

@K8Sewell

Copy link
Copy Markdown
Contributor Author

@K8Sewell, I should also note that your changes appear to have been necessitated by having a "dark mode" setting in your browser. When I look at this in Firefox in "light mode," the unselected bottom tabs are quite hard to see:
image

Ah! Thank you for the catch. Will put this back in draft until both dark and light mode are readable.

@K8Sewell K8Sewell marked this pull request as draft August 22, 2025 19:55

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, @K8Sewell, looks good to me now.

I'm approving, but I won't merge yet in case others have opinions. I'm asking for @Saira-A's review since she most recently revised the tabs and might be more likely than me to notice subtle problems, if any remain. :-)

@Saira-A

Saira-A commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

Looks good to me, thanks @K8Sewell @demiankatz!

@demiankatz

Copy link
Copy Markdown
Contributor

Thanks, @Saira-A and @K8Sewell -- merging now!

@demiankatz demiankatz merged commit 14133a2 into dev Aug 26, 2025
6 checks passed
@github-project-automation github-project-automation Bot moved this from In testing to Completed in Universal Viewer Community Board Aug 26, 2025
@demiankatz demiankatz deleted the TabText branch August 26, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

3 participants