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

Duplicate and contradictory CSS rule in viewer.css #11264

Closed
stephanrauh opened this issue Oct 20, 2019 · 7 comments
Closed

Duplicate and contradictory CSS rule in viewer.css #11264

stephanrauh opened this issue Oct 20, 2019 · 7 comments
Labels

Comments

@stephanrauh
Copy link

Hi team,

I've just noticed a duplicate definition of a CSS rule:

.toolbarField {
  ...
  border: 1px solid transparent;
   ...
  border: 1px solid hsla(0,0%,0%,.35);
  border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);

IMHO there's one or two rules too many.

For the sake of convenience, here's the link to the line in the repo.

Best regards,
Stephan

@Virtual1
Copy link

I'd like to claim this, if possible? See if I can figure out & fix it.
Thanks
Jessica

@timvandermeij
Copy link
Contributor

It's yours! I would check which rules are actually applied by the browser for .toolbarField using the developer console. I'm pretty sure the border: 1px solud transparent is overwritten by the other border entry, but I don't know which border color is used. I also think there are a few more CSS entries where the border has a color, but there is also a separate border-color property; I think the latter overrules the former.

@Zdobnov
Copy link
Contributor

Zdobnov commented Oct 22, 2019

As this issue was still opened, I had an initiative: #11268. This PR refactors the viewer.css a bit + removes duplications mentioned above.
I hope it will be useful.
Thanks.

@Virtual1
Copy link

Hi, I guess @Zdobnov fixed it, let me know if there's still something to check here?
Thanks,
Jessica

@Snuffleupagus
Copy link
Collaborator

Given that someone had already expressed interest in working on this less than a day ago, in #11264 (comment) above, generally speaking it seems like somewhat bad form to just "steal" the issue.

@stephanrauh
Copy link
Author

@Virtual1 If you want to help the project, you could have a quick look at #11264 and confirm this bug has been solved. You could also have a look at a second code duplication. Originally, I wanted to open a second ticket, but chances are it has been solved, so we can probably simplify the process:

image
https://sonarcloud.io/project/issues?id=stephanrauh_ngx-extended-pdf-viewer&open=AW3qm3-l-dJmagWAuDEh&resolved=false&types=BUG

BTW: as soon as someone has confirmed the two duplicate rules have been fixed, we can close this ticket. :)

@timvandermeij
Copy link
Contributor

Closing since both problems are fixed by #11268. There was a lot of interest in the issue, so thank you all for helping out. If there are more things to fix in the CSS, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants