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

Improve accessibility of qiskit-card being clickable #432

Merged
merged 6 commits into from
Jun 29, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

@Eric-Arellano Eric-Arellano commented Jun 29, 2023

#415 accidentally broke qiskit-card being clickable.

But the code wasn't accessible, to begin with. It's an antipattern to make a <div> clickable. Instead, we should use the semantic web with an <a> element.

Pytorch renders the same as before:

Screenshot 2023-06-29 at 2 38 53 PM

src/qiskit_sphinx_theme/directives.py Outdated Show resolved Hide resolved
@Eric-Arellano Eric-Arellano changed the title Fix qiskit-card not being clickable Improve accessibility of qiskit-card being clickable Jun 29, 2023
Copy link
Collaborator

@javabster javabster left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for improving the accessibility! 🚀

@Eric-Arellano Eric-Arellano merged commit e18c843 into Qiskit:main Jun 29, 2023
4 checks passed
@Eric-Arellano Eric-Arellano deleted the fix-clickable-card branch June 29, 2023 21:21
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.

2 participants