-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(3000): Improve opacity of profile pictures #19004
Changes from 8 commits
72f819d
c721bb5
fbca2a1
79f22f0
69cc7b9
fe44db5
e93cf29
ec0c59e
b437cae
d1e965d
da8a689
103b4b1
3cc328b
8fc28e9
cee1076
dff8f02
ccec343
224046e
fcec097
cb2a332
c7b37e0
d26e0be
e5f989b
995772f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
.posthog-3000 { | ||
.LemonButton, | ||
.Link.LemonButton { | ||
--lemon-button-transition: opacity 200ms ease, transform 200ms ease; | ||
--lemon-button-border-width: 0; | ||
|
||
position: relative; | ||
min-height: 2.125rem; | ||
padding: 0; | ||
|
@@ -14,7 +11,7 @@ | |
border-width: var(--lemon-button-border-width); | ||
border-radius: var(--radius); | ||
outline: none; | ||
transition: var(--lemon-button-transition); | ||
transition: none; | ||
|
||
.LemonButton__chrome { | ||
position: relative; | ||
|
@@ -36,10 +33,16 @@ | |
border-style: solid; | ||
border-width: var(--lemon-button-border-width); | ||
border-radius: var(--radius); | ||
transition: var(--transition); | ||
} | ||
|
||
.LemonButton__icon { | ||
opacity: 0.5; | ||
.LemonButton__icon { | ||
color: var(--muted-3000); | ||
transition: none; | ||
|
||
> :not(.LemonIcon) { | ||
// Elements that serve as an icon, but aren't an icon are slightly muted - | ||
// not so much that they look disabled though | ||
opacity: 0.75; | ||
} | ||
} | ||
|
||
|
@@ -131,6 +134,13 @@ | |
} | ||
} | ||
|
||
&:not([aria-disabled='true']):hover, | ||
&.LemonButton--active { | ||
.LemonButton__icon > :not(.LemonIcon) { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
&:not(.LemonButton--tertiary) { | ||
padding-bottom: 1px; | ||
|
||
|
@@ -216,6 +226,10 @@ | |
.LemonButton__chrome { | ||
border-color: var(--secondary-3000-button-border); | ||
} | ||
|
||
.LemonButton__icon { | ||
color: var(--muted-3000); | ||
} | ||
} | ||
|
||
&:not(:hover) { | ||
|
@@ -227,6 +241,10 @@ | |
background-color: transparent; | ||
border-color: transparent; | ||
} | ||
|
||
.LemonButton__icon { | ||
color: var(--trace-3000); | ||
} | ||
} | ||
} | ||
|
||
|
@@ -249,12 +267,16 @@ | |
height: 1.25rem; | ||
color: var(--muted); | ||
|
||
&.LemonButtonWithSideAction__spacer--divider { | ||
&--divider { | ||
padding: 0; | ||
margin-left: 0.25rem; | ||
} | ||
} | ||
|
||
.LemonButton--small .LemonButtonWithSideAction__spacer--divider { | ||
height: 1.125rem; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe beyond the scope of this PR but feels like this value could drift from https://github.com/PostHog/posthog/pull/19004/files#diff-c694fbbe6b6ff7273c964743f37751e5416009c150d0a9ddad1b4c031ef006d3R264. Perhaps the height should be a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This actually shouldn't be needed with the recent refactoring, so removed! |
||
} | ||
|
||
// SideAction buttons are buttons next to other buttons in the DOM but layered on top. since they're on another button, we don't want them to look like buttons. | ||
.LemonButtonWithSideAction__side-button { | ||
top: 1px; | ||
|
@@ -280,6 +302,11 @@ | |
border: none !important; | ||
} | ||
|
||
.LemonButton__icon { | ||
color: currentColor; | ||
opacity: 0.5; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup! Thanks, changed to that |
||
} | ||
|
||
&:not([aria-disabled='true']):hover { | ||
background: rgb(0 0 0 / 10%); | ||
} | ||
|
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.
Hmm thought I fixed this in #19045