Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Benjamin G. on November 05, 2020, 12:03:48 pm



Title: Place holder style
Post by: Benjamin G. on November 05, 2020, 12:03:48 pm
Hi,

Can we set the "textColor" of the placeholder attribute ?
Same question for the color of the HLine component ?

Thanks


Title: Re: Place holder style
Post by: Reuben B. on December 06, 2020, 11:57:13 pm
If using Universal Rendering and/or GBC, the answer should be yes via Customisation.

The key point is finding the appropriate selector and then adding some customisation.

Placeholder is a little different,  https://www.w3schools.com/howto/howto_css_placeholder.asp but it should be a case of something like the following if the browser supports it

Code
  1. ::placeholder {
  2.    color: red;
  3. }

In case of HLine component, the trick again is finding the appropriate selector, Developer Tools should shows that as .gbc_HLineWidget and that the line is being drawn by use of border top.  So

Code
  1. .gbc_HLineWidget {
  2.   border-top-color: red;
  3. }
  4.