Skip to content

Commit

Permalink
Removing duplicate borders on text input and update caret color
Browse files Browse the repository at this point in the history
  • Loading branch information
nandinicbit1981 committed May 8, 2024
1 parent 02ccae7 commit 119c7d1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion polaris-react/src/components/TextField/TextField.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
.Loading:has(+ .ClearButton) {
margin-right: 0;
}

/* Ensure backdrop has no border when focused */
.Backdrop {
@media (--p-breakpoints-sm-down) {
border: none;
}
}
}

&:not(:focus-within) {
Expand Down Expand Up @@ -95,6 +102,12 @@
outline-width: var(--p-border-width-025);
outline-offset: 0;
}

@media (--p-breakpoints-sm-down) {
border-color: var(--p-color-border-focus);
outline-width: var(--p-border-width-050);
outline-offset: 0;
}
}
}

Expand Down Expand Up @@ -294,7 +307,7 @@
border: none;
font-family: var(--p-font-family-sans);
appearance: none;
caret-color: var(--p-color-text);
caret-color: var(--p-color-border-focus);
color: var(--p-color-text);
align-items: center;

Expand Down

0 comments on commit 119c7d1

Please sign in to comment.