Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
refactor: Custom icons #864
refactor: Custom icons #864
Changes from 3 commits
692bc99
a83fd89
4999afe
43850b2
af5b767
74e26f8
6049cbd
9d48f50
d76b17a
db9e707
a633726
49059f2
0a84135
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
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.
I switched the props to
text-sm
instead of using a 20-pixel width and height. This change simplifies setting the icon size. However, you need to prefix!
for overrides, like!text-lg
.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.
I'd prefer we not make icons some type of global size. I'd rather overwrite width/height to be
1em
and then it will just inherit text-size from its parent (basically the same as we do withcurrentColor
).Then when we actually use it we can use regular font-size to control it (no need to use
!important
). It also makes it use size you actually request (because right now to achieve 32px you need to usetext-[27px]
and you actually end up with 27*1.2 so 32.4). Also it feels a bit more cleaner to set text size/color properties ona
instead of this component itself to me (see the diff), but it's just nitpick.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.
Nice, yeah that's cleaner! But now all the other icons are 18px instead of 20px, the only solution I found for this is changing the global text size in App.vue from
base
tomd
. Or we could addtext-md
to each icon.