Skip to content

Commit

Permalink
fix(pininput): undo safari-specific fixes, set input to opacity 0 (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatems committed Apr 28, 2023
1 parent 9cdd8f8 commit 4fe3bfe
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/components/PinInput/src/PinInputControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
[$s.isFocused]: isCellFocused(pinPosition - 1),
[$s.fill]: variant === 'fill',
[$s.error]: invalid,
[$s.disabled]: disabled || isShaking
}"
>
{{ inputValue[pinPosition - 1] }}
Expand Down Expand Up @@ -267,18 +268,8 @@ export default {
border: 0;
outline: 0;
/* Prevents Safari styles */
&:-webkit-autofill-and-obscured,
&:-webkit-autofill-strong-password,
&:-webkit-autofill-strong-password-viewable,
&:-webkit-autofill {
color: var(--bg-color, #fff) !important;
background-color: var(--bg-color, #fff) !important;
background-clip: content-box !important;
-webkit-box-shadow: 0 0 0 1000px var(--bg-color, #fff) inset !important;
box-shadow: 0 0 0 1000px var(--bg-color, #fff) inset !important;
-webkit-text-fill-color: var(--bg-color, #fff);
}
/* This makes the input clickable but not actually visible */
opacity: 0 !important;
}
.PinInputCells {
Expand Down Expand Up @@ -319,6 +310,11 @@ export default {
&.error {
border-color: $maker-color-error-fill;
}
&.disabled {
border: 1px solid $maker-color-neutral-20;
opacity: 0.9;
}
}
.isShaking {
Expand Down

0 comments on commit 4fe3bfe

Please sign in to comment.