function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Iago SilvaIago Silva 

How to turn the labels bold in a Lightning Web Component?

Hello everybody !!

I'm developing a Lightning Web Component that has 3 fields and I would like to know how I can turn the labels bold because they are very 'erased' within the Salesforce background.

lwc

Here's the code:
<div class="slds-size_2-of-4 slds-p-around_x-small">
    
            <lightning-record-edit-form object-api-name="Contact">
                <lightning-input-field field-name='AccountId' label='Conta' required data-my-id='orderAccount' onchange={showCleanButton}></lightning-input-field>
            </lightning-record-edit-form>
            
        </div>
    
        <div class="slds-size_1-of-4 slds-p-around_x-small">
            <lightning-input type="date" label="Data" placeholder="Insira a data do pedido" required data-my-id='orderDate' onchange={showCleanButton}></lightning-input>
        </div>

        <div class="slds-size_1-of-4 slds-p-around_x-small">
            <lightning-input type="text" label="Número do Pedido" placeholder="Insira o número do pedido" data-my-id='orderNumber' onchange={showCleanButton}></lightning-input>
        </div>
Thanks in advance ;)







 
Best Answer chosen by Iago Silva
VinayVinay (Salesforce Developers) 
Hi Iago,

Check below examples that can help you.

https://trailblazers.salesforce.com/answers?id=9063A000000ptH5QAI
https://salesforce.stackexchange.com/questions/279477/is-it-possible-to-change-the-lightning-input-label-to-bold-without-the-value-fie
https://salesforce.stackexchange.com/questions/291862/change-the-color-of-lightning-input-label

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Iago,

Check below examples that can help you.

https://trailblazers.salesforce.com/answers?id=9063A000000ptH5QAI
https://salesforce.stackexchange.com/questions/279477/is-it-possible-to-change-the-lightning-input-label-to-bold-without-the-value-fie
https://salesforce.stackexchange.com/questions/291862/change-the-color-of-lightning-input-label

Thanks,
This was selected as the best answer
Iago SilvaIago Silva
Thanks for the response, but we ended up changing the theme of the org for a lighter theme.