8000 minor #50386 Fix cursor on link that has no href (PhilETaylor) · symfony/symfony@5bf5c4d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5bf5c4d

Browse files
minor #50386 Fix cursor on link that has no href (PhilETaylor)
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
2 parents 11b8603 + 893d299 commit 5bf5c4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
{% else %}
155155
{{ caller.name }}
156156
{% endif %}
157-
line <a class="text-small sf-toggle" data-toggle-selector="#sf-trace-{{ discr }}-{{ loop.index0 }}" style="cursor: pointer">{{ caller.line }}</a>
157+
line <button type="button" class="btn-link text-small sf-toggle" data-toggle-selector="#sf-trace-{{ discr }}-{{ loop.index0 }}">{{ caller.line }}</button>
158158

159159
<div class="hidden" id="sf-trace-{{ discr }}-{{ loop.index0 }}">
160160
<div class="trace">

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/validator.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
{% else %}
8484
{{ caller.name }}
8585
{% endif %}
86-
line <a class="text-small sf-toggle" data-toggle-selector="#sf-trace-{{ loop.index0 }}" style="cursor: pointer">{{ caller.line }}</a> (<a class="text-small sf-toggle" data-toggle-selector="#sf-context-{{ loop.index0 }}" style="cursor: pointer">context</a>):
86+
line <button type="button" class="btn-link text-small sf-toggle" data-toggle-selector="#sf-trace-{{ loop.index0 }}">{{ caller.line }}</button> (<button type="button" class="btn-link text-small sf-toggle" data-toggle-selector="#sf-context-{{ loop.index0 }}">context</button>):
8787
</span>
8888

8989
<div class="sf-validator-compact hidden" id="sf-trace-{{ loop.index0 }}">

0 commit comments

Comments
 (0)
0