Skip to content

[HttpKernel] Improve accessibility #58366

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 27, 2024

Conversation

javiereguiluz
Copy link
Member

Q A
Branch? 7.2
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

There are still some things to improve, but I'll do that in a separate PR because requires some changes.

@stof
Copy link
Member

stof commented Sep 23, 2024

Why is this flagged as WebProfilerBundle when 99% of the PR is about the welcome page of HttpKernel instead ?

@javiereguiluz javiereguiluz changed the title [WebProfilerBundle] Improve accessibility [HttpKernel] Improve accessibility Sep 23, 2024
@carsonbot carsonbot changed the title [HttpKernel] Improve accessibility [HttpKernel][WebProfilerBundle] Improve accessibility Sep 23, 2024
@carsonbot carsonbot changed the title [HttpKernel][WebProfilerBundle] Improve accessibility [HttpKernel] Improve accessibility Sep 23, 2024
@javiereguiluz
Copy link
Member Author

@stof you are right. I fixed it.

@OskarStark OskarStark requested a review from stof September 27, 2024 08:26
fabpot added a commit that referenced this pull request Sep 27, 2024
…panel (javiereguiluz)

This PR was merged into the 7.2 branch.

Discussion
----------

[WebProfilerBundle] Update the contents of the Config panel

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | -lain below instead -->
| License       | MIT

Similar to #58366 and #58380, this fixes an accessibility issue of the Web Debug Toolbar:

```
The "title" attribute can't be used in non-interactive elements
```

It now looks like this:

![image](https://github.com/user-attachments/assets/dff8d754-9661-40a7-81f9-5734f0ab36aa)

Commits
-------

9f8d2f9 [WebProfilerBundle] Update the contents of the Config panel
@fabpot fabpot force-pushed the accessibility_welcome_page branch from 4835666 to 3268842 Compare September 27, 2024 08:53
@fabpot
Copy link
Member

fabpot commented Sep 27, 2024

Thank you @javiereguiluz.

@fabpot fabpot merged commit d1e909a into symfony:7.2 Sep 27, 2024
6 of 9 checks passed
@javiereguiluz javiereguiluz deleted the accessibility_welcome_page branch September 27, 2024 09:17
@fabpot fabpot mentioned this pull request Oct 27, 2024
fabpot added a commit that referenced this pull request Mar 29, 2025
…e toolbar (javiereguiluz)

This PR was squashed before being merged into the 7.3 branch.

Discussion
----------

[WebProfilerBundle] Update the logic that minimizes the toolbar

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | -
| License       | MIT

While working on fixing the accessibility issues of the toolbar (see #58366) I saw the following error reported:

```
Accesskey "D" is used more than once
```

This prevents the feature from working properly. So, in this PR I changed everything about how the toolbar is minimized:

* Remove the "mini toolbar" (which is the button displayed when the toolbar is minimized)
* Remove the `.sf-toolbar-clearer` element which is no longer needed
* Transform the "hide" button into a "toggle" button to show/hide the toolbar
* Update the show/hied logic to use CSS classes instead of just `style: none/block`

For end users nothing changes. It looks the same as before.

#SymfonyHackday

Commits
-------

06ed516 [WebProfilerBundle] Update the logic that minimizes the toolbar
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