One issue I am facing is with a label that displays a string from a text input filled in by the user.
The string is saved in a variable called question
and shown as:
<label
className={css('form-title-label')}>
{question}
</label>
The problem arises when the user leaves the text input blank, resulting in an empty variable and the label not being displayed. This absence of the label causes surrounding components to shift upwards and fill the space.
How can I ensure that the label is always present, even if it's empty, so that everything stays in place?