From badea6ab102025dd8a265a3482c208a7c4d3d86c Mon Sep 17 00:00:00 2001 From: aelmanaa Date: Wed, 11 Dec 2024 12:00:22 +0100 Subject: [PATCH] update --- .../ChainSelect.module.css | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/src/components/CCIP/TutorialBlockchainSelector/ChainSelect.module.css b/src/components/CCIP/TutorialBlockchainSelector/ChainSelect.module.css index 309737cc0d1..e1e1a3f8dd2 100644 --- a/src/components/CCIP/TutorialBlockchainSelector/ChainSelect.module.css +++ b/src/components/CCIP/TutorialBlockchainSelector/ChainSelect.module.css @@ -47,6 +47,7 @@ height: 24px; border-radius: 50%; flex-shrink: 0; + transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .arrow { @@ -102,12 +103,11 @@ .option:hover, .option.focused { - background: var(--color-background-secondary); - transform: translateX(4px); - box-shadow: 0 0 0 1px rgba(var(--color-accent-rgb), 0.1); - border-radius: 6px; - margin: 0 4px; - width: calc(100% - 8px); + background: rgba(var(--color-accent-rgb), 0.12); + color: var(--color-accent); + transform: scale(1.01); + font-weight: 500; + box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.15); } .option.selected { @@ -116,6 +116,24 @@ font-weight: 500; } +/* Add highlight effect */ +.option:hover::after, +.option.focused::after { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient(to right, rgba(var(--color-accent-rgb), 0.05), rgba(var(--color-accent-rgb), 0.1)); + pointer-events: none; + border-radius: inherit; +} + +/* Enhance the chain logo on hover */ +.option:hover .chainLogo, +.option.focused .chainLogo { + transform: scale(1.1); + box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2); +} + .option:last-child { border-bottom: none; }