-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fixed upf-stat__label issue #348
Conversation
@@ -29,10 +29,10 @@ | |||
</span> | |||
|
|||
{{#if label}} | |||
<span class="upf-stat__label"> | |||
<span class={{concat 'upf-stat__label' (if tooltip '--with-tooltip')}}> |
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.
use double quotes here :)
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.
and maybe
if tooltip "upf-stat__label--with-tooltip" "upf-stat__label"
is clearer, but debatable 🤷 ^^
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.
or
class="upf-stat__label{{if tooltip "--with-tooltip"}}"
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.
Fixed for your solution @Miexil
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.
Otherwise lgtm
@@ -29,10 +29,10 @@ | |||
</span> | |||
|
|||
{{#if label}} | |||
<span class="upf-stat__label"> | |||
<span class={{concat 'upf-stat__label' (if tooltip '--with-tooltip')}}> |
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.
or
class="upf-stat__label{{if tooltip "--with-tooltip"}}"
app/styles/base/_stats.less
Outdated
display: flex; | ||
gap: var(--spacing-px-6); | ||
align-items: center; | ||
color: @color-text-light; |
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.
Nit: Replace @color-text-light
with var(--color-gray-500)
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.
Yep fixed
What does this PR do?
It fixes the display of upf stat label
Related to: #
https://linear.app/upfluence/issue/ENG-2079/creator-media-stats-have-bad-alignment-in-sidepanel
What are the observable changes?
Fixes display issues that emerged with this commit. A condition is added in order to switch classes when a tooltip is present.
Good PR checklist