Open PerAndresen opened 5 months ago
Dette skal være støttet av designsystemet: https://storybook.designsystemet.no/?path=/story/komponenter-combobox--custom-new-value
Det heter 'placeholder' der, som er et begrep jeg tror jeg liker bedre enn 'hint', for det indikerer tydeligere at en placeholder faktisk forsvinner når en verdi er valgt (noe den riktignok ikke gjør i eksempelet til designsystemet, men det er fullt mulig å implementere det slik i app-frontend). Legger til good-first-issue
på denne, da jeg tror det skal være en smal sak å implementere.
Description
When I create a dropdown there is often a need for having a hint text which shows the user what kind of options that appear if they press the dropdown list. A hint text could be "Velg politidistrikt.." and when the user presses it sees the kind of options, and if it is a required field it is not possible to leave it empty. Today you have to put this as a option in the list, but then you have to create custom validation to check if this option is selected.
Additional Information
I want it to be similar as the date field where there is a grey text, which only works as a hint to the user, and this should be a textResourceBinding e.g "hint" for Dropdown and also be great for all kinds of input fields.