We are using lightning record edit form in which there is lightning-input-field. this field is type of datetime. Please see screenshot attached. Start Date/Time and End Date/Time legend displaying in Bold and others are in normal font-weight. we want to remove it and tried many CSS but could not able to fix it Can anyone please help in fixing this issue.
Here is what you can do.
variant of the
lightning-input-field to the
label-hidden so it hides the standard label, now you can put the custom label using the below code.
<span class="slds-form-element_stacked"> <label class="slds-form-element__label" for="unique-id-of-input">Put your label here</label> <lightning-input-field variant="label-hidden"....> </lightning-input-field </span>