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

Updates color in nutrition info and removes bullet point #511

Merged
merged 3 commits into from
Jan 15, 2021

Conversation

seyfeb
Copy link
Collaborator

@seyfeb seyfeb commented Jan 13, 2021

Closes #510

…bullets

Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
@codecov
Copy link

codecov bot commented Jan 13, 2021

Codecov Report

Merging #511 (fec9543) into master (58a0b97) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #511   +/-   ##
========================================
  Coverage      0.90%   0.90%           
  Complexity      416     416           
========================================
  Files            13      13           
  Lines          1319    1319           
========================================
  Hits             12      12           
  Misses         1307    1307           
Flag Coverage Δ Complexity Δ
integration 0.00% <ø> (ø) 0.00 <ø> (ø)
unittests 0.90% <ø> (ø) 0.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@@ -379,6 +379,10 @@ aside {
margin-top: 2rem;
}

.nutrition-items {
list-style-type: none !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this really needed? I am always a bit suspicious when !important is in use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The other ways would be to either

  1. change the definition of #app-content-wrapper aside ul in the main style.css since this has a higher specificity than using the class
  2. use #app-content-wrapper aside ul.nutrition-items which might be just as bad as using !important :D

For 1. I need to test if there are any unintended consequences when removing the definition. But changing it there might be a sensible way to handle this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

See #515. The global CSS is a bad idea to change the styling of things within vue.

Copy link
Collaborator

Choose a reason for hiding this comment

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

For now, I suggest keeping the !important and opening an issue to remind us to come back to it eventually once #515 is finished.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I forgot to push the updated version. We can start deprecating the global style here rather than introducing new code "depending" on the old style file which needs to be changed in the future.

Signed-off-by: Sebastian Fey <info@sebastianfey.de>
@christianlupus
Copy link
Collaborator

I am going to merge here. If something broke by this, we might need to tweak it at appropriate locations though.

@christianlupus christianlupus merged commit ee80881 into nextcloud:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dark Theme Headline nutrition information not really visible
2 participants