-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix svg spacing #14638
Fix svg spacing #14638
Conversation
64516e4
to
d3ffa88
Compare
Codecov Report
@@ Coverage Diff @@
## master #14638 +/- ##
==========================================
+ Coverage 42.21% 42.31% +0.09%
==========================================
Files 767 767
Lines 81624 81739 +115
==========================================
+ Hits 34458 34586 +128
+ Misses 41531 41520 -11
+ Partials 5635 5633 -2
Continue to review full report at Codecov.
|
padding-left: .85714286em; | ||
padding-right: .85714286em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what did these mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are simply the same as the padding top/bottom, copied from semantin.css
@kdumontnu i don't see any visible changes on before/after comparison images here. |
Have to agree with @bagasme there - it's not obvious what the problem you're fixing is here. |
To be fair, it's a rather minor change. Added a short description above. The svgs should not be touching the text. This more closely matches how we style icons in other sections. |
@kdumontnu can you "Update Branch" please :) |
This has created some over-generalization issues. Take a look at the clone link panel on the repo page, for example, or the branch selector dropdown, which belong to the secondary menu class. Those child items are not direct children of the whole menu, but actually their own small menu class, and should obey their own rules. So at least it should be But again in your second example, on the top right corner, those children in the radio-style menu have also been affected by this. The spacing there was a lot smaller - though not necessarily optimal - and this change has made those gaps larger than expected. Octicons were introduced in phases to replace FontAwesome, and are governed by different spacing strategies. Some are direct margins in stylesheets. Some are normal inline spacing with whitespace characters. Some are set with Flex boxes. The units are also a mix of The icons of the top navbar (login, register, and dropdown items) are affected by this change, and has previously let me believe there was a design change in general (which I of course welcome, I very much appreciate your effort to fix these uniformity issues) and made the language switcher icon closer to the text in #14575. The dropdown menu itself now has one remaining FontAwesome icon that stands out as a result of this probably unintended override, which I thought was a miss, but turns out to be coincidental after all. To be fair, these small things are not obvious to every pair of eyes and most people won't notice or bother to try and fix them, especially since the styling have gotten so many patches here and there, with loads of inconsistencies and I believe the correct fix would be to go through a checklist of spacing issues to be fixed, implement them locally in their respective scopes, and finally try to generalize bit by bit. Since there aren't "unit tests" for this kind of stuff, a lot of testing should be done in the browser's inspector, with measurements taken. Note that rules seen as sourced from |
@CL-Jeremy commenting on closed issues/PRs is a recipe for loosing comments to the ether, please open a new issue with these comments so that someone could follow up on them. |
This UI change adds spacing between the svg icon and text in header and reduce the left/right padding to prevent the tabs from wrapping.
Before:
After:
Before:
After: