Uh oh!
There was an error while loading. Please reload this page.
Octicons: support icon-size property - #1128
Conversation
hcwong
commented
Mar 16, 2020
@le0tan can I tag you as reviewer haha? |
dvrylc
commented
Mar 17, 2020
@hcwong I actually did a bit of digging on this problem (before I realized you were working on it) and found this: The way Not sure if this is useful to you, but just leaving it here as an idea. |
Not sure about this, but do we need to modify the svg height and width attribute directly to change the actual dimensions of the svg? |
dvrylc
commented
Mar 17, 2020
Not quite sure what you mean but the |
What is the purpose of this pull request?
• [x] Bug fix
Fixes#1096
What changes did you make? (Give an overview)
The bug occured because there was the style property currently for icons only works for favicons. We do some HTML manipulation in the parser to detect if theres magnification and adjust the size accordingly. We cannot do this in the vue component as to change a svg's size, we need to change the element directly and its surrounding divs.
Is there anything you'd like reviewers to focus on?
I haven't really played with the parser code, so if its not in line with the current style, do let me know. Also, I'm not sure if this octicon icon with icon-size is used anywhere else. If so, I might want to generalize this solution.
Testing instructions:
Run the code with octicons and use the icon-size property. Regardless the icon-size property is there or not, it should not break the code and the octicon should vary in size
Proposed commit message: (wrap lines at 72 characters)
Support icon-size property for octicons.