@@ -297,6 +297,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
297297 >
298298 < TokenSelectorContainer
299299 css = { { backgroundColor : 'widget-background' } }
300+ id = { 'from-token-section' }
300301 >
301302 < Flex
302303 align = "center"
@@ -351,14 +352,18 @@ const SwapWidget: FC<SwapWidgetProps> = ({
351352 } }
352353 />
353354 ) }
354- < Flex align = "center" justify = "between" css = { { gap : '4' } } >
355+ < Flex
356+ align = "center"
357+ justify = "between"
358+ css = { { gap : '4' , width : '100%' } }
359+ >
355360 < AmountInput
356361 value = {
357362 tradeType === 'EXACT_INPUT'
358363 ? amountInputValue
359364 : amountInputValue
360- ? formatFixedLength ( amountInputValue , 8 )
361- : amountInputValue
365+ ? formatFixedLength ( amountInputValue , 8 )
366+ : amountInputValue
362367 }
363368 setValue = { ( e ) => {
364369 setAmountInputValue ( e )
@@ -417,9 +422,9 @@ const SwapWidget: FC<SwapWidgetProps> = ({
417422 isSingleChainLocked
418423 ? [ lockChainId ]
419424 : fromToken ?. chainId !== undefined &&
420- fromToken ?. chainId === lockChainId
421- ? [ fromToken ?. chainId ]
422- : undefined
425+ fromToken ?. chainId === lockChainId
426+ ? [ fromToken ?. chainId ]
427+ : undefined
423428 }
424429 restrictedTokensList = { tokens ?. filter (
425430 ( token ) => token . chainId === fromToken ?. chainId
@@ -457,7 +462,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
457462 >
458463 { price ?. details ?. currencyIn ?. amountUsd &&
459464 Number ( price . details . currencyIn . amountUsd ) > 0 ? (
460- < Text style = "subtitle3" color = "subtle " >
465+ < Text style = "subtitle3" color = "subtleSecondary " >
461466 { formatDollar (
462467 Number ( price . details . currencyIn . amountUsd )
463468 ) }
@@ -552,10 +557,14 @@ const SwapWidget: FC<SwapWidgetProps> = ({
552557 justifyContent : 'center' ,
553558 width : '100%' ,
554559 height : '100%' ,
560+ '--borderWidth' :
561+ 'borders.widget-swap-currency-button-border-width' ,
555562 '--borderColor' :
556563 'colors.widget-swap-currency-button-border-color' ,
557- border : '4px solid var(--borderColor)' ,
558- zIndex : 10
564+ border : `var(--borderWidth) solid var(--borderColor)` ,
565+ zIndex : 10 ,
566+ borderRadius :
567+ 'widget-swap-currency-button-border-radius'
559568 } }
560569 onClick = { ( ) => {
561570 if ( fromToken || toToken ) {
@@ -585,7 +594,11 @@ const SwapWidget: FC<SwapWidgetProps> = ({
585594 ) }
586595 </ Box >
587596 < TokenSelectorContainer
588- css = { { backgroundColor : 'widget-background' , mb : '6px' } }
597+ css = { {
598+ backgroundColor : 'widget-background' ,
599+ mb : 'widget-card-section-gutter'
600+ } }
601+ id = { 'to-token-section' }
589602 >
590603 < Flex
591604 css = { { width : '100%' } }
@@ -672,14 +685,18 @@ const SwapWidget: FC<SwapWidgetProps> = ({
672685 } }
673686 />
674687 ) }
675- < Flex align = "center" justify = "between" css = { { gap : '4' } } >
688+ < Flex
689+ align = "center"
690+ justify = "between"
691+ css = { { gap : '4' , width : '100%' } }
692+ >
676693 < AmountInput
677694 value = {
678695 tradeType === 'EXPECTED_OUTPUT'
679696 ? amountOutputValue
680697 : amountOutputValue
681- ? formatFixedLength ( amountOutputValue , 8 )
682- : amountOutputValue
698+ ? formatFixedLength ( amountOutputValue , 8 )
699+ : amountOutputValue
683700 }
684701 setValue = { ( e ) => {
685702 setAmountOutputValue ( e )
@@ -765,9 +782,9 @@ const SwapWidget: FC<SwapWidgetProps> = ({
765782 isSingleChainLocked
766783 ? [ lockChainId ]
767784 : toToken ?. chainId !== undefined &&
768- toToken ?. chainId === lockChainId
769- ? [ toToken ?. chainId ]
770- : undefined
785+ toToken ?. chainId === lockChainId
786+ ? [ toToken ?. chainId ]
787+ : undefined
771788 }
772789 restrictedTokensList = { tokens ?. filter (
773790 ( token ) => token . chainId === toToken ?. chainId
@@ -782,7 +799,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
782799 { price ?. details ?. currencyOut ?. amountUsd &&
783800 Number ( price . details . currencyOut . amountUsd ) > 0 ? (
784801 < Flex align = "center" css = { { gap : '1' } } >
785- < Text style = "subtitle3" color = "subtle " >
802+ < Text style = "subtitle3" color = "subtleSecondary " >
786803 { formatDollar (
787804 Number ( price . details . currencyOut . amountUsd )
788805 ) }
@@ -849,9 +866,11 @@ const SwapWidget: FC<SwapWidgetProps> = ({
849866 css = { {
850867 borderRadius : 'widget-card-border-radius' ,
851868 backgroundColor : 'widget-background' ,
869+ border : 'widget-card-border' ,
852870 overflow : 'hidden' ,
853- mb : '6px '
871+ mb : 'widget-card-section-gutter '
854872 } }
873+ id = { 'swap-route-selection-section' }
855874 >
856875 < SwapRouteSelector
857876 chain = { toChain }
@@ -897,7 +916,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
897916 relayerFeeProportion = { relayerFeeProportion }
898917 supportsExternalLiquidity = { supportsExternalLiquidity }
899918 containerCss = { {
900- mb : '6px '
919+ mb : 'widget-card-section-gutter '
901920 } }
902921 />
903922 { promptSwitchRoute ? (
0 commit comments