mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(ui): add focus-visible border to countrySelector (#3469)
This commit is contained in:
parent
edc5ddb551
commit
36f26a7f17
2 changed files with 5 additions and 22 deletions
|
@ -59,7 +59,6 @@
|
|||
&.selected {
|
||||
border-radius: _.unit(2);
|
||||
background: var(--color-overlay-neutral-hover);
|
||||
color: var(--color-type-link);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
.countryCodeSelector {
|
||||
font: var(--font-label-1);
|
||||
color: var(--color-type-primary);
|
||||
border: none;
|
||||
border: _.border('transparent');
|
||||
border-top-left-radius: var(--radius);
|
||||
border-bottom-left-radius: var(--radius);
|
||||
background: none;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
@ -13,22 +15,8 @@
|
|||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
||||
> select {
|
||||
flex-shrink: 0;
|
||||
appearance: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: none;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 0;
|
||||
|
||||
option {
|
||||
font: var(--font-label-1);
|
||||
}
|
||||
&:focus-visible {
|
||||
border: _.border(var(--color-brand-default));
|
||||
}
|
||||
|
||||
> svg {
|
||||
|
@ -44,10 +32,6 @@
|
|||
.countryCodeSelector {
|
||||
font: var(--font-body-2);
|
||||
|
||||
> select option {
|
||||
font: var(--font-body-2);
|
||||
}
|
||||
|
||||
> svg {
|
||||
margin-left: _.unit(2);
|
||||
width: 20px;
|
||||
|
|
Loading…
Reference in a new issue