-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Update event_dispatcher.rst #19042
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
Update event_dispatcher.rst #19042
Conversation
Adding a space before deep links.
It looks like some bot detects a space at a line ending as error. In this case it is not. |
Trying to get rid of wrong bot note.
components/event_dispatcher.rst
Outdated
@@ -408,7 +406,7 @@ In some cases, it may make sense for a listener to prevent any other listeners | |||
from being called. In other words, the listener needs to be able to tell | |||
the dispatcher to stop all propagation of the event to future listeners | |||
(i.e. to not notify any more listeners). This can be accomplished from | |||
inside a listener via the | |||
inside a listener via the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This trailing space should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without a space it is rendered wrongly, see screen shot at top.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, I cannot reproduce this display issue. Which device and which browser do you use?
Remove line break to avoid issue with necessary space before a deep link.
@@ -408,8 +406,7 @@ In some cases, it may make sense for a listener to prevent any other listeners | |||
from being called. In other words, the listener needs to be able to tell | |||
the dispatcher to stop all propagation of the event to future listeners | |||
(i.e. to not notify any more listeners). This can be accomplished from | |||
inside a listener via the | |||
:method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: | |||
inside a listener via the :method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inside a listener via the :method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: | |
inside a listener via the | |
:method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: |
should work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I think this should be fixed by CC @javiereguiluz
Thanks of reporting this rendering issue, @powtac! This bug is reproducible on Firefox, but it indeed appears like something we cannot fix the line break after the GitHub icon. Firefox will line-break in between a pseudo element and the actual content, unless we disable word breaks (but that means that we never line-break within a link, which seems too aggressive to me). @javiereguiluz you can change the CSS to not use the body[data-is-doc-page] .ui-prose a[href^="https://github.com"]::before, body[data-is-doc-page] .page-content .content a[href^="https://github.com"]::before {
content: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDMyIDMyIj48cGF0aCBmaWxsPSIjMjQyOTJFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNiAwYTE2IDE2IDAgMCAwLTUgMzEuMmMuNy4xIDEtLjQgMS0uOHYtM2MtNCAuOC01LTEtNS40LTEuOC0uMS0uNS0xLTItMS42LTIuMy0uNi0uMy0xLjQtMSAwLTEgMS4yIDAgMi4xIDEuMSAyLjQgMS42IDEuNSAyLjQgMy44IDEuNyA0LjcgMS4zLjEtMSAuNi0xLjcgMS0yLjEtMy41LS40LTcuMy0xLjgtNy4zLTggMC0xLjcuNy0zLjEgMS43LTQuMi0uMi0uNC0uNy0yIC4xLTQuMyAwIDAgMS40LS40IDQuNCAxLjdhMTQuOCAxNC44IDAgMCAxIDggMGMzLjEtMi4xIDQuNC0xLjcgNC40LTEuNyAxIDIuMi40IDMuOS4yIDQuM2E2IDYgMCAwIDEgMS42IDQuM2MwIDYuMS0zLjcgNy41LTcuMyA3LjkuNi41IDEuMSAxLjQgMS4xIDN2NC4zYzAgLjQuMyAxIDEuMS44QTE2IDE2IDAgMCAwIDE2IDBaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);
margin-right: .25em; /* 1/4th em is roughly the size of a normal space character */
} I prefer this over adding trailing whitespaces before links throughout the documentation sources. |
@wouterj I'm really sorry that I lost track of your last comment. I just found this and did that change on symfony.com. Link icons now work as expected on all browsers, Firefox included. Thanks a lot! Let's close this one as fixed. |
Adding a space before deep links to avoid this kind of rendering a github icon next to a character.
