Currently, I'm designing a form that requires the user to select a color scheme by clicking on circle font awesome icons. These icons are implemented using Bootstrap and when clicked, a stacked font-awesome icon appears. However, I've encountered an issue where the clicked icon disappears at a certain point when the page is resized.
I suspect this problem is related to the stacking of icons, but I am unsure of the underlying cause. Can someone provide guidance on how to resolve this issue?
For reference, here is a screenshot of the screen under normal resolution: https://i.sstatic.net/OAPOw.png
And here is how it looks when the page is shrunk:https://i.sstatic.net/N97wm.png
Below is the code snippet:
<div class="row pb-4">
<div class="col-md-2 offset-md-2 text-center">
<i class="fas fa-circle fa-2x" style="color: #D1504F;" @click="setRed()" v-if="this.headClass !== 'bc-header-red'"></i>
<i class="fas fa-circle fa-stack-2x" style="color: #D1504F;" v-if="this.headClass === 'bc-header-red'"></i>
<i class="far fa-circle fa-stack-2x" v-if="this.headClass === 'bc-header-red'"></i>
</div>
<div class="col-md-2 text-center">
<i class="fas fa-circle fa-2x" style="color: #4FA1D1;" @click="setBlue()" v-if="this.headClass !== 'bc-header-blue'"></i>
<i class="fas fa-circle fa-stack-2x" style="color: #4FA1D1;" @click="setBlue()" v-if="this.headClass === 'bc-header-blue'"></i>
<i class="far fa-circle fa-stack-2x" v-if="this.headClass === 'bc-header-blue'"></i>
</div>
<div class="col-md-2 text-center">
<i class="fas fa-circle fa-2x" style="color: #4FD17C;" @click="setGreen()" v-if="this.headClass !== 'bc-header-green'"></i>
<i class="fas fa-circle fa-stack-2x" style="color: #4FD17C;" @click="setGreen()" v-if="this.headClass === 'bc-header-green'"></i>
<i class="far fa-circle fa-stack-2x" v-if="this.headClass === 'bc-header-green'"></i>
</div>
<div class="col-md-2 text-center">
<i class="fas fa-circle fa-2x" style="color: #FFCD2B;" @click="setYellow()" v-if="this.headClass !== 'bc-header-yellow'"></i>
<i class="fas fa-circle fa-stack-2x" style="color: #FFCD2B;" @click="setYellow()" v-if="this.headClass === 'bc-header-yellow'"></i>
<i class="far fa-circle fa-stack-2x" v-if="this.headClass === 'bc-header-yellow'"></i>
</div>
</div>