I have created a HTML form that includes a select menu, the code:
<label className='form--group'>
<div className='form--placeholder'>
<span>Select a streaming service</span>
</div>
{/* This is where the replacement icon is <i class='fas fa-caret-down carat-down'></i> */}
<select
className='form--input'
onChange={(e) => onChange(e)}
name='streamingService'
required
>
<option value='' defaultValue>
--Select service--
</option>
<option value='Netflix'>Netflix</option>
<option value='Disney+'>Disney+</option>
<option value='Amazon Prime'>Amazon Prime</option>
</select>
</label>
I want the down carat to cover the entire right side of the input box so I have removed the default one with CSS and added a new carat icon using font awesome which looks better however the new icon does not make the menu drop down when clicked :( does anyone have any HTML/CSS wizardy that could help me?