Running a WordPress site, I have a button on the home page that is set to load more posts when clicked. I wanted to add a touch of design by including an upside-down caret next to the text "load more posts" using pseudo-elements. While I successfully achieved the desired look, I encountered an issue - the caret does not disappear along with the rest of the button when it's pressed. I attempted to address this problem by applying an ::active class, but the caret still persists. What steps should I take to ensure the caret disappears upon clicking the button?
Here is an example of the button:
https://i.sstatic.net/OI2y3.png
This is how the button looks after being clicked (I don't want the caret to be visible):
https://i.sstatic.net/Zfu5l.png
Below is the current CSS code:
.elm-button::before {
content: "v";
font-size:11px;
float: right;
margin: 6px 0 0 14px;
font-family: 'Days One', sans-serif;
}
.elm-button::active {
display: none;
visibility: hidden;
}