Topic: Problem with changing form focus border

jsuares free asked 1 year ago


I am trying to change the border color of fields based on previous answers using:

.form-control:focus ~ .form-notch div { border-color: red !important; }

.form-control:focus ~ .form-label { color: red !important; }

However when using floating labels this creates a horizontal line in the label when in focus.


Mateusz Lazaru staff commented 1 year ago

show me your code to let me understand the problem better



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No
Tags