Topic: Change Datepicket Label Style

Hector@cube-usa.com free asked 4 years ago


How can i change Angular MDB DatePicker Label:

label string - Label text for the input element [label]="'My label'"

Style?.. Font-Size? Color? And others attributes styles

Thanks in advance.


Damian Gemza staff answered 4 years ago


Dear @Hector@cube-usa.com

Just change it with css. You should use the Browser Inspector to check the DOM tree. There's everything that you should know.

Please add the below code to the global styles.scss stylesheet:

mdb-date-picker label {
  color: red !important;
}

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.5.4
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No