Currently, I am utilizing Bootstrap 5 (v5.2.1) along with a form on my website.
I am attempting to customize the default styles for form validation. Specifically, I want to modify the colored 'tick' or 'check' icon that is displayed when a form field is successfully completed/validated.
Upon inspecting the Developer Tools panel, I discovered that the code responsible for formatting the validated form is located in a _forms.scss file which was not included in the files/folders downloaded from Bootstrap.
Despite this, I have limited experience working with .scss files.
Is there a simple way to change the default colors in Bootstrap 5, including the SVG icon mentioned in the CSS snippet above, without relying on SCSS?
.form-control.is-valid, .was-validated .form-control:valid {
border-color: #198754;
padding-right: calc(1.5em + 0.75rem);
background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'
viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4
1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e);
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.1875rem) center;
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
P.S.
I attempted to insert the aforementioned code into my custom.css file and adjust the colors, but unfortunately, it did not yield the desired results.