Skip to content

The open alternative to Salesforce, designed for AI.

Keep the currency and calling-code picker focus ring visible in forms (#28162)

Thomas Trompette92d4d34713dd
diff --git a/packages/twenty-ui/src/components/input/CurrencyPicker/CurrencyPicker.module.scss b/packages/twenty-ui/src/components/input/CurrencyPicker/CurrencyPicker.module.scss
index 0fba7c1c7e1..729498228d1 100644
--- a/packages/twenty-ui/src/components/input/CurrencyPicker/CurrencyPicker.module.scss
+++ b/packages/twenty-ui/src/components/input/CurrencyPicker/CurrencyPicker.module.scss
@@ -3,8 +3,9 @@
appearance: none;
background: transparent;
border: 0;
+ border-end-start-radius: inherit;
border-inline-end: 1px solid var(--t-border-color-medium);
- border-radius: 0;
+ border-start-start-radius: inherit;
box-sizing: border-box;
color: var(--t-font-color-tertiary);
cursor: pointer;
@@ -15,6 +16,7 @@
font-weight: var(--t-font-weight-medium);
gap: var(--t-spacing-1);
block-size: 32px;
+ max-block-size: 100%;
justify-content: center;
padding-block: 0;
padding-inline: var(--t-spacing-2);
@@ -24,8 +26,9 @@
background: var(--t-background-transparent-light);
}
+ @include focus-ring;
+
&:focus-visible {
- outline: 2px solid var(--t-color-blue);
outline-offset: -2px;
}
diff --git a/packages/twenty-ui/src/components/input/PhoneCountryPicker/PhoneCountryPicker.module.scss b/packages/twenty-ui/src/components/input/PhoneCountryPicker/PhoneCountryPicker.module.scss
index 37226aefb51..daf0c9b848a 100644
--- a/packages/twenty-ui/src/components/input/PhoneCountryPicker/PhoneCountryPicker.module.scss
+++ b/packages/twenty-ui/src/components/input/PhoneCountryPicker/PhoneCountryPicker.module.scss
@@ -1,13 +1,12 @@
.trigger {
- @include focus-ring;
-
align-items: center;
background: none;
block-size: var(--t-spacing-8);
+ max-block-size: 100%;
border: 0;
- border-end-start-radius: var(--t-border-radius-xs);
+ border-end-start-radius: inherit;
border-inline-end: 1px solid var(--t-border-color-medium);
- border-start-start-radius: var(--t-border-radius-xs);
+ border-start-start-radius: inherit;
color: var(--t-font-color-tertiary);
cursor: pointer;
display: inline-flex;
@@ -17,6 +16,12 @@
padding-inline: var(--t-spacing-2) var(--t-spacing-1);
user-select: none;
+ @include focus-ring;
+
+ &:focus-visible {
+ outline-offset: -2px;
+ }
+
&:disabled,
&[aria-disabled='true'] {
cursor: not-allowed;