Select to view content in your preferred language

Customizing font size and boldness for locator placeholder text in Zone Lookup App

1299
3
Jump to solution
05-13-2024 11:57 AM
Labels (1)
HenriettaK
Occasional Contributor

Hello Instant Apps Community!

I have built an instant app using the Zone Lookup template and have rolled it out for testing to the organization. A lot of the feedback has been about bolding the placeholder text in the address search bar or somehow making the search bar larger. The app currently looks like this: 

HenriettaK_0-1715626536190.png

Is there a way to bold or increase the font size of the geolocator placeholder text that reads "Find address or place"? 

Also, is there a way to increase the size of the address search bar?

Thank you so much and I appreciate any help!

1 Solution

Accepted Solutions
KellyHutchins
Esri Notable Contributor

You can increase the font size and bold the text by adding the following to the custom CSS config option: 

 

.esri-search__form .esri-input[type=text] {
    font-size: 22px;
    font-weight: bold;
}

View solution in original post

0 Kudos
3 Replies
KellyHutchins
Esri Notable Contributor

You can increase the font size and bold the text by adding the following to the custom CSS config option: 

 

.esri-search__form .esri-input[type=text] {
    font-size: 22px;
    font-weight: bold;
}
0 Kudos
Russell_Provost
New Contributor

Is this CSS config option no longer available in the latest update? My app doesn't seem to be responding to this override. 

0 Kudos
KellyHutchins
Esri Notable Contributor

You can definitely still make css changes but its a bit trickier now because the apps use components encapsulate some of the styling and that can make it harder to make updates.  But you can modify the placeholder color and update the font size and weight. Here's an example that should work for Zone Lookup

 

.search-panel{
calcite-autocomplete{
    --calcite-autocomplete-input-placeholder-text-color:#ff00ff;
     --calcite-font-weight-normal:900;
     --calcite-font-size-relative-base:1.2em;
}
}

 

 

0 Kudos