Skip to content

Commit 682182f

Browse files
committed
update focus values
1 parent 83bea5a commit 682182f

File tree

1 file changed

+45
-36
lines changed

1 file changed

+45
-36
lines changed

src/libs/theme/styles/globals.scss

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
--color_fg_link_hover: var(--functional-gray-50);
5656
--color_fg_link_pressed: var(--functional-gray-50);
5757

58-
--color_fg_selected: #99a7f1;
59-
--color_border_selected: #99a7f1;
60-
--color_border_focus: #99a7f1;
58+
--color_fg_selected: var(--functional-gray-850);
59+
--color_border_selected: var(--functional-gray-850);
60+
--color_border_focus: var(--functional-gray-850);
6161

6262
--color_bg_auth0-cta: linear-gradient(251deg, #1e1e1e 2.29%, #191919 87.03%);
6363

@@ -206,9 +206,9 @@ html[data-theme="system-light"] {
206206
--color_fg_link_hover: var(--charcoal2);
207207
--color_fg_link_pressed: var(--charcoal2);
208208

209-
--color_fg_selected: #3f59e4;
210-
--color_border_selected: #3f59e4;
211-
--color_border_focus: #3f59e4;
209+
--color_fg_selected: var(--functional-gray-850);
210+
--color_border_selected: var(--functional-gray-850);
211+
--color_border_focus: var(--functional-gray-850);
212212

213213
--color_bg_auth0-cta: var(--functional-gray-150);
214214

@@ -513,8 +513,13 @@ $picker-list-offset-lg: calc(($picker-list-width-lg - $picker-width-lg) / 2);
513513
.react-select__control {
514514
background-color: transparent !important;
515515
border-color: var(--color_border_button) !important;
516+
background-color: var(--color_bg_layer);
517+
border: 1px solid var(--color_border_default) !important;
516518
height: 100% !important;
517-
border: 1px solid var(--color_border_inverse_static) !important;
519+
&:hover {
520+
border-color: var(--color_border_bold) !important;
521+
transition: 0.2s ease-out !important;
522+
}
518523
}
519524

520525
.react-select__control--is-focused {
@@ -542,13 +547,16 @@ $picker-list-offset-lg: calc(($picker-list-width-lg - $picker-width-lg) / 2);
542547
}
543548

544549
.react-select__menu {
545-
background-color: var(--color_bg_layer_alternate-bold) !important;
546-
color: var(--color_fg_bold) !important;
547-
border: 1px solid var(--color_border_bold) !important;
548-
font-size: 0.875rem !important;
549-
font-family: var(--font-primary), monospace !important;
550-
width: max-content !important;
551-
min-width: 100% !important;
550+
background-color: var(--color_bg_layer) !important;
551+
border-radius: 0.75rem !important;
552+
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 11px !important;
553+
margin-bottom: 8px !important;
554+
margin-top: 8px !important;
555+
box-sizing: border-box !important;
556+
border: 1px solid var(--color_border_default);
557+
padding: 0.25rem;
558+
overflow: hidden;
559+
min-width: 240px;
552560
}
553561

554562
.react-select__menu-portal {
@@ -581,28 +589,29 @@ $picker-list-offset-lg: calc(($picker-list-width-lg - $picker-width-lg) / 2);
581589
}
582590

583591
.react-select__option {
584-
display: flex !important;
585-
align-items: center !important;
586-
color: var(--color_fg_default) !important;
587-
position: relative !important;
588-
height: 2.5rem !important;
589-
border-bottom: 1px solid var(--color_border_bold) !important;
590-
padding: 0.25rem 1rem !important;
591-
background-color: transparent !important;
592-
font-family: var(--font-primary), monospace !important;
593-
594-
gap: 0.5rem !important;
595-
font-size: 0.8125rem !important;
596-
line-height: 1.3125rem !important;
597-
letter-spacing: -0.05px !important;
598-
599-
&:last-child {
600-
border-bottom: unset;
601-
}
602-
603-
&:hover {
604-
cursor: pointer;
605-
}
592+
cursor: pointer !important;
593+
display: flex !important;
594+
font-size: 0.875rem !important;
595+
width: 100% !important;
596+
user-select: none !important;
597+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
598+
background-color: transparent !important;
599+
color: var(--color_fg_default) !important;
600+
padding: 8px 12px 8px 1.25rem !important;
601+
box-sizing: border-box !important;
602+
-webkit-box-align: center !important;
603+
align-items: center !important;
604+
position: relative !important;
605+
height: 1.5rem !important;
606+
border-radius: 0.5rem !important;
607+
font-family: var(--font-primary),monospace !important;
608+
line-height: 1.3125rem !important;
609+
letter-spacing: -0.05px !important;
610+
font-weight: 500 !important;
611+
opacity: 1 !important;
612+
&:hover {
613+
background-color: var(--color_bg_layer_alternate) !important;
614+
}
606615
}
607616

608617
.react-select__option--is-selected {

0 commit comments

Comments
 (0)