Skip to content

Commit b4a315e

Browse files
committed
console: Fix panel animations and icon
1 parent 3d71795 commit b4a315e

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

pkg/webui/components/news-panel/news-item/news-item.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
display: flex
1717
padding: $cs-xs
1818
gap: $cs.m
19-
transition: background-color $ad.m ease-in-out
19+
transition: background-color $ad.s ease-in-out
2020
border-radius: $br.xl
2121
padding: $cs.xs
2222

2323
&:hover
24-
background-color: var(--c-bg-neutral-min-hover)
24+
background-color: var(--c-bg-brand-extralight)
2525

2626
.image
2727
border-radius: $br.l

pkg/webui/components/panel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Panel = ({
4040
divider,
4141
}) => (
4242
<div className={classnames(styles.panel, className)}>
43-
<div className="d-flex j-between mb-cs-m">
43+
<div className="d-flex j-between al-center mb-cs-m">
4444
<div className="d-flex gap-cs-xs al-center">
4545
{icon && <Icon icon={icon} className={styles.panelHeaderIcon} />}
4646
<Message content={title} className={styles.panelHeaderTitle} />

pkg/webui/components/panel/panel.styl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@
2626
font-size: $fsv2.l
2727
line-height: 1
2828

29-
.button
29+
a.button
3030
font-weight: $fwv2.semibold
31-
text-decoration: none
32-
transition: text-decoration 0.2s ease-in-out
31+
text-decoration: none transparent
32+
transition: text-decoration $ad.s ease-in-out
3333

3434
&:hover
3535
color: var(--c-text-brand-normal)
3636
text-decoration: underline
3737
text-decoration-thickness: 2px
3838
text-underline-offset: .4rem
39+
text-decoration-color: var(--c-text-brand-normal)
3940

4041
&-divider
4142
border-bottom: 1px solid var(--c-border-neutral-light)
@@ -45,3 +46,8 @@
4546

4647
span.panel-header-icon
4748
font-size: 1.5rem
49+
font-variation-settings: 'FILL' 1
50+
background-color: var(--c-bg-brand-extralight)
51+
padding: $cs.xs
52+
border-radius: $br.l
53+
color: var(--c-bg-brand-normal)

pkg/webui/styles/variables/tokens.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $tokens = {
3737

3838
// Brand
3939

40-
'bg-brand-extralight': $c.tts-025 // Background for navigation elements background.
40+
'bg-brand-extralight': $c.tts-050 // Background for navigation elements background.
4141
'bg-brand-light': $c.tts-100 // ?
4242
'bg-brand-normal': $c.tts-500 // Background for highlight elements.
4343
'bg-brand-normal-hover': $c.tts-600 // Background for highlight elements on hover.

0 commit comments

Comments
 (0)