Skip to content

[WebProfilerBundle] Fix Form profiler toggles #51640

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

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

smnandre
Copy link
Member

@smnandre smnandre commented Sep 13, 2023

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix
License MIT

Following: #51621

  • Reuse the chervron in the filetree
  • Remove the not-togglin-toggle present on the error zone
before after
before after

@smnandre
Copy link
Member Author

Poke @javiereguiluz :)

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nice to me 👍

Simon, thanks a lot for taking care of fixing and updating this.

@@ -496,12 +500,6 @@
{% macro render_form_errors(data) %}
{% if data.errors is defined and data.errors|length > 0 %}
<div class="errors">
<h3>
<a class="toggle-button" data-toggle-target-id="{{ data.id }}-errors" href="#">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you removing this toggle button ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one allowed to toggle the content of the "Errors" tab.

Tab + toggle seem duplicates to me, and i don't see a case where someone would click on the "errors" tab then would want to hide its content (see capture 1)

But i may have missed something. Did you have something in mind ?

@fabpot
Copy link
Member

fabpot commented Sep 13, 2023

Thank you @smnandre.

@fabpot fabpot merged commit 253370a into symfony:6.4 Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants