Change Datepicket Label Style


Topic: Change Datepicket Label Style

Hector@cube-usa.com asked 5 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 5 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
  • User: 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
Tags