Place holder style

Started by Benjamin G., November 05, 2020, 12:03:48 PM

Previous topic - Next topic

Benjamin G.

Hi,

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

Thanks

Reuben B.

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 (css) Select
::placeholder {
    color: red;
}


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 (css) Select
.gbc_HLineWidget {
   border-top-color: red;
}



Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero