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
[WebProfilerBundle] Fix cursor on link that has no href #50376
Conversation
Won't this break CSP rules? |
It doesn't appear to. |
Thank you @PhilETaylor. |
The right markup for this would be a @nicolas-grekas there is no CSP at all on profiler pages (our toolbar has to avoid CSP issues as it gets injected into the project pages) |
I did type that out, but deleted it, sorry, was in the car earlier. I guess we need to revert this one, or revert it with a new PR, where would the css go? |
As a button, with no css, it also doesn't have a pointer. Screen.Recording.2023-05-22.at.15.06.05.mov |
Markup: With new css in
Looks like this - if this is ok I can PR this: Screen.Recording.2023-05-22.at.15.10.28.movok? |
converted to a button in PR #50386 |
This PR was merged into the 6.3 branch. Discussion ---------- Fix cursor on link that has no href [WebProfilerBundle] Fix cursor on link that has no href link to button | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> Alternative approach for #50376 `@stof` `@nicolas`-grekas Commits ------- 893d299 Convert A link to Button
A
a
link tag with nohref
has the wrong cursor icon by default when hovering it. Eg: https://codepen.io/philetaylor/pen/mdzQoxRBefore
before.mov
anotherbefore.mov
After
after.mov