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
Remove the color:inherit behavior from sidebar folder collapsed state. #8538
Comments
Auto-contrasting the folder names with the background colour is a good idea, but as far as I can tell, we don't have any such existing styling. For example, if I create a white folder in the sidebar, it still has white text: It seems in the case of this module-provided sidebar, it's simply inheriting the wrong colour, perhaps? The icons are also black rather than white, for example. I'd have to install the module myself to be certain. |
This is a good point. I went back and did some more troubleshooting with the base Foundry and then with Enhanced Journal, to isolate variables. I learned three things:
So I think the ask is to remove color:inherit from line 3121 of style.css in the next patch, which will at least let all the folder text to maintain the same light color in core AND Monk's (and other folder-related things). Since the issue is the font is hard-coded, choosing background colors allows the user to mitigate the contrast issue for now. Bigger picture, the structure of the current CSS is very brittle. Shifting this to a light/dark series of color options for text (added as a customizable setting in the main config menu), which then is employed if the background for any element based on the 50% mark of lightness calculation throughout. This could be done through CSS or JS to pass / detect the background colors, but that would allow it to be surgically fixed throughout without having to replace so much of the existing code. Better would replace a lot of the first CSS lines in style.css with variables of HSL values depending on the purpose, rather than directly hard-coding colors. This would allow easier changes of colors in themes to flow better in relation to different parts, but I wouldn't want to wait on that to get at least consistant folder text color mentioned above |
We can remove the |
What happened?
In the journal folder list, the backgrounds are selectable. The font color is not, and should automatically adjust to a high-contrast option based on the background color for accessibility purposes.
While this does function on the main journal folder, when using Monk's Enhanced Journal, I found that the collapsed folders did not adjust their font color appropriately - the variable style was being usurped in the evaluation.
What ways of accessing Foundry can you encounter this issue in?
Reproduction Steps
This allows li.folder > .folder-header h3 to take the color value, which restores the dynamic setting for contrast option.
What core version are you reporting this for?
10.290
Relevant log output
No response
Bug Checklist
The text was updated successfully, but these errors were encountered: