In my application dropdown, arrow up and down not working properly. I have tried but I do not know how to fix this issue.
If I click the dropdown, arrow should be up.
Again if I click the dropdown, arrow should be down.
.label::after {
background-color: white;
border-right: 3px solid black;
border-bottom: 3px solid black;
width: 10px;
display: inline-block;
height: 10px;
transform: rotate(45deg);
-webkit-transform: scale(1) rotate(45deg) translate(0px, 0px);
-moz-transform: rotate(45deg) scale(1);
-o-transform: rotate(45deg) scale(1);
margin-top: 10px;
content: '';
margin-left: 5px;
}
.label::after {
border-right: 3px solid black;
border-bottom: 3px solid black;
transform: rotate(-135deg);
-webkit-transform: scale(1) rotate(-135deg) translate(0px, 0px);
-moz-transform: rotate(-135deg) scale(1);
-o-transform: rotate(-135deg) scale(1);
}
<i class="label"></i>