Hi @bensita & @0sukaru,
The border/outline that is displayed when the field gets the focus are needed to pass accessibility test.
People with low sight or cognitive disabilities might rely on the existence of the outline to identify which field is currently being typed in.
For those reasons, I do not recommend removing them but rather change the color to adapt to the theme you are using on your website.
In case you really want to remove them, you can use the CSS code below with a more complete list of places where Fluid Checkout adds them:
body.woocommerce-checkout div.woocommerce input[type="number"]:focus,
body.woocommerce-checkout div.woocommerce input[type="checkbox"]:focus,
body.woocommerce-checkout div.woocommerce input[type="radio"]:focus,
body.woocommerce-checkout div.woocommerce form .form-row textarea,
body.woocommerce-checkout div.woocommerce form .form-row select,
body.woocommerce-checkout div.woocommerce form .form-row input[type="email"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="number"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="date"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="search"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="text"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="tel"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="url"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="password"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="checkbox"],
body.woocommerce-checkout div.woocommerce form .form-row input[type="radio"],
body.woocommerce-checkout div.woocommerce form .form-row .select2-selection,
body.woocommerce-checkout div.woocommerce ul#shipping_method .shipping-method__option input[type="radio"]:focus + .shipping-method__option-label:before,
body.woocommerce-checkout .fc-wrapper #payment .payment_methods > .wc_payment_method > input[type="radio"]:focus + label:before {
outline: none;
}
You can also replace outline: none;
with outline-color: blue;
to change the color of the outline as explained earlier would be a better alternative if you want to maintain this accessibility feature.
Best,
Diego
-
This reply was modified 2 years, 5 months ago by
Diego Versiani. Reason: Remove link to code snippets as it does not apply to CSS code