-
Notifications
You must be signed in to change notification settings - Fork 39
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
BUG: Quote marks in Dropcaps #459
Comments
@designerbrent Is this only happening within the WP context? It looks like the dropcap is being set by a data attribute. If it is being set manually, then the quote could come first and then the actual letter could be set:
But if this is being set programmatically from WP then I'll have to look at how that is being set. |
@davideleuterius @designerbrent Any update on fixing this bug? |
@brentawilson |
@davideleuterius WordPress |
What should happen to the opening quote mark when we fix this to show the first actual letter? @designerbrent |
Drop it.
… On Jun 15, 2020, at 18:28, David Eleuterius ***@***.***> wrote:
What should happen to the opening quote mark when we fix this to show the first actual letter? @designerbrent
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@designerbrent @brentawilson https://developer.mozilla.org/en-US/docs/Web/CSS/::first-letter
So the options are:
More than likely the best option is the second one, so unless directed otherwise, I will look into this. I am leaning more towards JavaScript because should the user turn off the drop cap from the paragraph, the opening quote would still be there, but if removed via PHP, it would be dropped from the DB so if the drop cap is deactivated, the opening quote would not be restored. Let me know what you think. |
@designerbrent My thinking on this is that this is a display issue only, and this only affects display, not the content within the DB itself. This also handles multiple drop caps on the same page. |
@davideleuterius To clarify then, are you saying that ALPS only uses When I put a |
In ALPS WP, it is just using the In ALPS core, a js script is looking for the Then in the CSS, the letter is put back in to the span by setting it as content by reading that data-letter attribute:
So it seems there is different methods here for WP and ALPS core. |
Yes, that definitely explains it. Sorry for not understanding how that was set up. I think what I did for WP just needs to be ported into ALPS core and then removed from the WP part, because I think this is done the same exact way. Again sorry for the confusion on this! |
ok. So yes, move that to the WP core part and I will not commit that PR to Wordpress. |
Text that starts with
"
or other quote marks has that mark put in the dropcap.The text was updated successfully, but these errors were encountered: