Skip to content

Commit ad194de

Browse files
V48 (implementation-only): Orange wallet card cue without end flicker
Match section attention to the orange button pulse (border, glow, subtle bg wash, no scale). Drop static highlight styles on the attention class and end keyframes at rest so removing the class after 2.1s does not flash.
1 parent df5cb40 commit ad194de

3 files changed

Lines changed: 63 additions & 37 deletions

File tree

uapi/components/auxillaries/AuxillariesWalletConnectionPanel/AuxillariesWalletConnectionPanel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ export default function AuxillariesWalletConnectionPanel({
119119
.filter(Boolean)
120120
.join(' ')}
121121
style={{
122-
/* Border/glow live in CSS so attention animation can own them. */
123-
background: 'linear-gradient(145deg, rgba(42, 25, 11, 0.86), rgba(14, 22, 36, 0.86))',
122+
/* Border / bg / glow live in CSS so attention animation can own them. */
124123
borderRadius: 0,
125124
padding: '20px',
126125
}}

uapi/components/auxillaries/AuxillariesWalletConnectionPanel/models/wallet-connect-attention.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88

99
export const BITCODE_FOCUS_WALLET_CONNECT_EVENT = 'bitcode-focus-wallet-connect';
1010

11-
/** How long the strong attention highlight stays active. */
12-
export const WALLET_CONNECT_ATTENTION_MS = 2200;
11+
/**
12+
* Must match CSS animation duration (`wallet-section-attention` /
13+
* `wallet-connect-button-attention`). Class is removed only after the run
14+
* settles at rest so the border does not flash.
15+
*/
16+
export const WALLET_CONNECT_ATTENTION_MS = 2100;
1317

1418
/** Window after request during which a newly mounted panel should auto-run attention. */
1519
const PENDING_ATTENTION_GRACE_MS = 4000;

uapi/styles/auxillaries-bitcode.css

Lines changed: 56 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -863,56 +863,75 @@
863863
}
864864

865865
/*
866-
* Chrome Connect attention cue:
867-
* - Section: emerald border + glow (same weight as orange button cue, no scale)
868-
* - Buttons: strong orange pulse (unchanged)
866+
* Chrome Connect attention cue (orange, synced for section + buttons).
869867
*
870-
* Note: a global .orbital-section rule used border/box-shadow !important; the
871-
* wallet-required card is excluded so this cue can paint.
868+
* Section: border + glow + subtle bitcoin-orange wash — no scale.
869+
* Buttons: strong orange pulse (with light scale).
870+
*
871+
* Flicker guard: attention class carries only `animation` (no static highlight
872+
* after the run). Keyframe 0%/100% equal rest styles via --wallet-section-*.
873+
* Class is removed after 2.1s to match the animation duration.
872874
*/
873875
.auxillaries-bitcode-surface .wallet-required-section,
874876
.wallet-required-section {
877+
--wallet-section-rest-border: rgba(251, 146, 60, 0.36);
878+
--wallet-section-rest-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
879+
--wallet-section-rest-bg: linear-gradient(
880+
145deg,
881+
rgba(42, 25, 11, 0.86),
882+
rgba(14, 22, 36, 0.86)
883+
);
875884
position: relative;
876885
border-style: solid;
877886
border-width: 1px;
878-
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
879-
transition:
880-
border-color 160ms ease,
881-
box-shadow 160ms ease;
887+
border-color: var(--wallet-section-rest-border);
888+
box-shadow: var(--wallet-section-rest-shadow);
889+
background: var(--wallet-section-rest-bg);
890+
/* No transition on border/shadow — transitions re-flash after animation ends. */
891+
transition: none;
882892
}
883893

884894
.wallet-required-section--pending {
885-
border-color: rgba(251, 146, 60, 0.36);
895+
--wallet-section-rest-border: rgba(251, 146, 60, 0.36);
886896
}
887897

888898
.wallet-required-section--connected {
889-
border-color: rgba(103, 254, 183, 0.34);
899+
--wallet-section-rest-border: rgba(103, 254, 183, 0.34);
890900
}
891901

892902
@keyframes wallet-section-attention {
893903
0%,
894904
100% {
895-
border-color: rgba(101, 254, 183, 0.4);
896-
box-shadow:
897-
0 18px 44px rgba(0, 0, 0, 0.2),
898-
0 0 0 0 rgba(101, 254, 183, 0);
905+
border-color: var(--wallet-section-rest-border);
906+
box-shadow: var(--wallet-section-rest-shadow);
907+
background: var(--wallet-section-rest-bg);
899908
}
900909
12%,
901910
38% {
902-
/* No transform/scale — border + glow only (emerald twin of button cue). */
903-
border-color: rgba(190, 255, 220, 0.95);
911+
/* Same weight as button cue; border/glow only (no size growth). */
912+
border-color: rgba(254, 215, 170, 0.95);
913+
background: linear-gradient(
914+
145deg,
915+
rgba(92, 42, 10, 0.94),
916+
rgba(28, 18, 12, 0.9)
917+
);
904918
box-shadow:
905919
0 18px 44px rgba(0, 0, 0, 0.28),
906-
0 0 0 2px rgba(101, 254, 183, 0.8),
907-
0 0 36px rgba(101, 254, 183, 0.58),
908-
0 0 0 1px rgba(101, 254, 183, 0.28) inset;
920+
0 0 0 2px rgba(251, 146, 60, 0.8),
921+
0 0 36px rgba(251, 146, 60, 0.58),
922+
0 0 0 1px rgba(251, 146, 60, 0.28) inset;
909923
}
910924
55% {
911-
border-color: rgba(134, 239, 172, 0.78);
925+
border-color: rgba(253, 186, 116, 0.82);
926+
background: linear-gradient(
927+
145deg,
928+
rgba(64, 32, 10, 0.9),
929+
rgba(18, 16, 20, 0.88)
930+
);
912931
box-shadow:
913932
0 18px 44px rgba(0, 0, 0, 0.24),
914-
0 0 0 1px rgba(101, 254, 183, 0.55),
915-
0 0 22px rgba(101, 254, 183, 0.38);
933+
0 0 0 1px rgba(251, 146, 60, 0.55),
934+
0 0 22px rgba(251, 146, 60, 0.4);
916935
}
917936
}
918937

@@ -921,6 +940,9 @@
921940
100% {
922941
transform: translateY(0) scale(1);
923942
box-shadow: none;
943+
border-color: rgba(251, 146, 60, 0.34);
944+
background: rgba(251, 146, 60, 0.14);
945+
color: rgba(255, 247, 237, 0.98);
924946
}
925947
12%,
926948
38% {
@@ -943,18 +965,14 @@
943965
}
944966
}
945967

968+
/* Only animation — no static highlight props (those caused end flicker). */
946969
.auxillaries-bitcode-surface .wallet-required-section.wallet-connect-attention-section,
947970
.wallet-required-section.wallet-connect-attention-section {
948-
animation: wallet-section-attention 2.1s ease-out 1;
949-
border-color: rgba(167, 243, 208, 0.88);
950-
box-shadow:
951-
0 18px 44px rgba(0, 0, 0, 0.28),
952-
0 0 0 2px rgba(101, 254, 183, 0.72),
953-
0 0 32px rgba(101, 254, 183, 0.48);
971+
animation: wallet-section-attention 2.1s ease-out 1 both;
954972
}
955973

956974
.wallet-connect-attention-button {
957-
animation: wallet-connect-button-attention 2.1s ease-out 1;
975+
animation: wallet-connect-button-attention 2.1s ease-out 1 both;
958976
will-change: transform, box-shadow, background-color, border-color;
959977
}
960978

@@ -966,11 +984,16 @@
966984

967985
.auxillaries-bitcode-surface .wallet-required-section.wallet-connect-attention-section,
968986
.wallet-required-section.wallet-connect-attention-section {
969-
border-color: rgba(167, 243, 208, 0.85);
987+
border-color: rgba(254, 215, 170, 0.9);
988+
background: linear-gradient(
989+
145deg,
990+
rgba(92, 42, 10, 0.94),
991+
rgba(28, 18, 12, 0.9)
992+
);
970993
box-shadow:
971994
0 18px 44px rgba(0, 0, 0, 0.2),
972-
0 0 0 2px rgba(101, 254, 183, 0.65),
973-
0 0 28px rgba(101, 254, 183, 0.4);
995+
0 0 0 2px rgba(251, 146, 60, 0.65),
996+
0 0 28px rgba(251, 146, 60, 0.4);
974997
}
975998

976999
.wallet-connect-attention-button {

0 commit comments

Comments
 (0)