Skip to content

phpinfo HTML Output: Make module title names clickable and link to the URL fragment #9054

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

Closed
wants to merge 1 commit into from

Conversation

Ayesh
Copy link
Member

@Ayesh Ayesh commented Jul 19, 2022

This was split away from #8958, which I proposed to make phpinfo HTML output accessibility improvements with better contrast, in addition to the following change. For easier review, this PR only focuses on clickable module titles, while #8958 will focus on the contrast improvements.


Each section of phpinfo is titled with an <h2><a name="module_NAME">NAME</a></h2> tag. While the name=module_NAME attribute allows linking to that section using a URL fragment (e.g info.php#module_NAME), it lacks discoverability because the <a> tag does not contain an href attribute. This is also highlighted in accessibility scans (in Firefox for instance).

This adds a link to the <a> tag that links to the URL fragment, fixing the accessibility remark and improving the discoverability of the clickable section titles. Also contains minor CSS changes to account for the dark theme CSS.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! Looks like a nice improvement overall.

…the URL fragment

Each section of `phpinfo` is titled with an `<h2><a name="module_NAME">NAME</a></h2>` tag. While the `name=module_NAME` attribute allows linking to that section using a URL fragment (e.g `info.php#module_NAME`), it lacks discoverability because the `<a>` tag does not contain an `href` attribute. This is also highlighted in accessibility scans (in Firefox for instance).

This adds a link to the `<a>` tag that links to the URL fragment, fixing the accessibility remark and improving the discoverability of the clickable section titles. Also contains minor CSS changes to account for the dark theme CSS.
@Ayesh Ayesh force-pushed the phpinfo-a11y-links branch from 878cb1c to 9b76b3a Compare July 20, 2022 12:48
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you!

@cmb69 cmb69 closed this in 5c2c688 Jul 20, 2022
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.

3 participants