I need help customizing the appearance of an asterisk on my label without affecting the rest of the label. The CSS for the label is directly in the Textfield component code. Here is a snippet of the code:
<TextField className="sign-up-input-field"
value={loginId}
placeholder="Enter Login ID"
label="Login ID *"
handleChange={
(e) => {
if (e.target.value)
setShowEmptyFieldError(false)
setIsLoginPage(true);
setLoginId(e.target.value)
}
}
id="prospect-sign-in-login-id-input"
type="number"
labelStyles={
{
fontFamily: "Roboto",
fontStyle: "normal",
display: "block",
fontWeight: "400",
fontSize: "16px",
lineHeight: "24px",
letterSpacing: "0.03em",
color: "#312126"
}
}/>
Can someone guide me on how to apply CSS specifically to the asterisk within the label?