Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text not lining correctly, creating a backdrop effect #2

Open
leodesigndev opened this issue May 10, 2023 · 1 comment
Open

text not lining correctly, creating a backdrop effect #2

leodesigndev opened this issue May 10, 2023 · 1 comment

Comments

@leodesigndev
Copy link

leodesigndev commented May 10, 2023

i came accross issue where i had highlight looking like the bellow

image

what helped to hide the issue is modifying/overwritting the .css so that i have

.hlta-highlight mark {
    background-color: #00a1a1;
    color: rgba(0, 0, 0, 0);  /* <--- Help prevent offset introduced by target text area styling*/
}
  1. can this be considered a proper fix , or what should the fix look like ?
@wstaeblein
Copy link
Owner

Sorry but I can't seem to reproduce your problem. Could you post the full code? Are you sure you haven't got any CSS interfering with the class'? When calculating where to position a highlight the class takes into account a few properties (padding, border, etc.) but there may be some left out properties that could also impact this positioning and you may be using one such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants