Skip to content

Commit

Permalink
fix: inherit parent color for typing caret
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Sep 25, 2023
1 parent 7dc8400 commit 41d6615
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/animation/frontend/typing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const initTyping = ( elem ) => {
const typingPlaceholder = document.createElement( 'span' );
typingPlaceholder.classList.add( 'o-anim-typing-caret' );
typingPlaceholder.style.whiteSpace = 'pre-wrap';
typingPlaceholder.style.color = 'inherit';

const fillPlaceholder = document.createElement( 'span' );
fillPlaceholder.style.whiteSpace = 'pre-wrap';
Expand Down Expand Up @@ -110,7 +109,6 @@ domReady( () => {
.o-anim-typing-caret::after {
font-weight: 100;
content: '|';
color: #2E3D48;
animation: 1s blink step-end infinite;
}
Expand All @@ -119,7 +117,7 @@ domReady( () => {
color: transparent;
}
50% {
color: black;
color: inherit;
}
}
`;
Expand Down

0 comments on commit 41d6615

Please sign in to comment.