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

Photo captions not readable in light themes [🐛] #1474

Closed
bkimminich opened this issue Sep 25, 2020 · 13 comments
Closed

Photo captions not readable in light themes [🐛] #1474

bkimminich opened this issue Sep 25, 2020 · 13 comments

Comments

@bkimminich
Copy link
Member

🐛 Bug report

Description

image

🔬 Minimal Reproduction

  1. NODE_ENV=7ms npm start
  2. Go to http://localhost:3000/#/photo-wall
  3. Hover over any photo to (not) see the caption in black text on gray-transparent background
@bkimminich
Copy link
Member Author

In dark themes it's all fine, because the text is actually dependent on the theme. The transparent box isn't though, it's always dark-gray, which works with white but fails with black text color.

image

@surajat17
Copy link

i am new to open source commnity... can i work on it?

@bkimminich
Copy link
Member Author

Of course, give it a shot! 👍

@rohan2734
Copy link

@bkimminich Hey i would like to work on this issue can you assign me this issue

@bkimminich
Copy link
Member Author

Not sure if @surajat17 started working on this yet, but give it a shot too, if you like. First (good) PR, first merge... 😁

@surajat17
Copy link

@rohan2734 go for it.

@surajat17 surajat17 removed their assignment Sep 29, 2020
@rohan2734
Copy link

rohan2734 commented Sep 29, 2020

ok @surajat17

  • Hover over any photo to (not) see the caption in black text on gray-transparent background

is this saying, we need to see the caption, when we hover on the background? or is the opposite?
pleaes be clear.

@bkimminich
Copy link
Member Author

bkimminich commented Sep 29, 2020

On light background you see it (good ✔️) but on dark background you don't (bad ❌). It should be readable on both color schemes.

@rohan2734
Copy link

@bkimminich okay.

@rohan2734
Copy link

@bkimminich can you share the file names, on which it is there?
file searching is vert time taking process.

@Scar26
Copy link
Contributor

Scar26 commented Sep 30, 2020

@rohan2734 If you mean the photowall page, the component is defined in https://github.com/bkimminich/juice-shop/tree/master/frontend/src/app/photo-wall

@bkimminich
Copy link
Member Author

The problematic part is actually this statically defined overlay color: https://github.com/bkimminich/juice-shop/blob/master/frontend/src/app/photo-wall/photo-wall.component.scss#L69

50% transparent black works nicely if you put white letters on it but totally fails if you put black letters on it. The color needs to be different depending on having a light or dark color theme. There should be an Angular-way to do this, but you'd need to investigate that as part of the issue solution.

@github-actions
Copy link

github-actions bot commented Oct 2, 2021

This thread has been automatically locked because it has not had recent activity after it was closed. 🔒 Please open a new issue for regressions or related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants