Skip to content
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

Fix misplaced label tag in icon links component #1300

Merged
merged 2 commits into from Apr 17, 2023
Merged

Conversation

vkbo
Copy link
Contributor

@vkbo vkbo commented Apr 16, 2023

Replace the <label> tag with <span> in icon-links.html, and add aria-hidden="true" to the icon itself.

Closes #1287

@trallard @drammock

@vkbo
Copy link
Contributor Author

vkbo commented Apr 16, 2023

The failing CI-jobs seem to be completely unrelated to this PR, so I'm not doing anything about it unless you want me to:

=== Sphinx Warnings test ===

Checking build warnings in file: "D:\a\pydata-sphinx-theme\pydata-sphinx-theme\warnings.txt" and comparing to expected warnings defined in "D:\a\pydata-sphinx-theme\pydata-sphinx-theme\tests\warning_list.txt"


Unexpected warning: C:\hostedtoolcache\windows\Python\3.11.3\x64\Lib\site-packages\pandas\core\frame.py:docstring of pandas.core.frame.DataFrame.drop:1: WARNING: undefined label: 'advanced.shown_levels'

Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Looks good to me - thanks for this improvement. I agree the CI tests aren't related and can be fixed elsewhere.

Just to double-check, you confirmed that we don't use label. as a selector for these elements in our CSS? We should make sure that this re-name won't break any CSS or JS selectors. If not then I'm +1. Approving under the assumption this has already been done!

@vkbo
Copy link
Contributor Author

vkbo commented Apr 16, 2023

Not that I could find anyway. All usage of label in the CSS seems to be related to the sidebars.

@12rambau 12rambau merged commit cc8a529 into pydata:main Apr 17, 2023
13 of 16 checks passed
@vkbo vkbo changed the title Fix mispalced label tag in icon links component Fix misplaced label tag in icon links component Sep 15, 2023
@vkbo vkbo deleted the a11y_label branch September 15, 2023 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid <label> tags in quick links menu
3 participants