-
Notifications
You must be signed in to change notification settings - Fork 3
No more href to '#' for reasons #466
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,27 +31,27 @@ <h2 slot="header">This Project</h2> | |||||
| </a> | ||||||
| </div> | ||||||
| </div> | ||||||
| <a id="leave-project-btn" slot="footer" class="default-btn" href="#" role="button">LEAVE PROJECT</a> | ||||||
| <a id="leave-project-btn" slot="footer" class="default-btn" role="button" tabindex="0">LEAVE PROJECT</a> | ||||||
| </tpen-card> | ||||||
| <tpen-card tpen-scope="metadata"> | ||||||
| <h2 slot="header">Metadata</h2> | ||||||
| <tpen-project-metadata slot="body"></tpen-project-metadata> | ||||||
| <a id="update-metadata-btn" slot="footer" class="default-btn" href="#" role="button">EDIT METADATA</a> | ||||||
| <a id="update-metadata-btn" slot="footer" class="default-btn" role="button" tabindex="0">EDIT METADATA</a> | ||||||
|
||||||
| </tpen-card> | ||||||
| <tpen-card tpen-entity="member"> | ||||||
| <h2 slot="header">Collaborators</h2> | ||||||
| <project-collaborators slot="body"></project-collaborators> | ||||||
| <a id="manage-collaboration-btn" slot="footer" class="default-btn" href="#" role="button">MANAGE COLLABORATORS</a> | ||||||
| <a id="manage-collaboration-btn" slot="footer" class="default-btn" role="button" tabindex="0">MANAGE COLLABORATORS</a> | ||||||
|
||||||
| </tpen-card> | ||||||
| <tpen-card tpen-entity="layer"> | ||||||
| <h2 slot="header">Layers & Pages</h2> | ||||||
| <tpen-project-layers slot="body"></tpen-project-layers> | ||||||
| <a id="manage-layers-btn" slot="footer" class="default-btn" href="#" role="button">SEE DETAILS / MODIFY</a> | ||||||
| <a id="manage-layers-btn" slot="footer" class="default-btn" role="button" tabindex="0">SEE DETAILS / MODIFY</a> | ||||||
|
||||||
| </tpen-card> | ||||||
| <tpen-card tpen-entity="role"> | ||||||
| <h2 slot="header">Project Roles</h2> | ||||||
| <tpen-project-permissions slot="body"></tpen-project-permissions> | ||||||
| <a id="manage-custom-role-btn" slot="footer" class="default-btn" href="#" role="button">MANAGE ROLE</a> | ||||||
| <a id="manage-custom-role-btn" slot="footer" class="default-btn" role="button" tabindex="0">MANAGE ROLE</a> | ||||||
|
||||||
| <a id="manage-custom-role-btn" slot="footer" class="default-btn" role="button" tabindex="0">MANAGE ROLE</a> | |
| <button id="manage-custom-role-btn" slot="footer" class="default-btn" type="button">MANAGE ROLE</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong. enter works. href is set by script.
Copilot
AI
Feb 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This anchor element lacks keyboard accessibility until the href is set by JavaScript. Anchors without href don't respond to Enter key presses, even with tabindex="0". Consider using a placeholder href like "javascript:void(0)" or better yet, converting these to button elements that trigger navigation programmatically. Alternatively, initialize with a disabled state until the JavaScript sets the href.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -78,7 +78,7 @@ <h2 slot="header">Project Details <a id="projectManagementBtn" title="Manage Pro | |||||
| </a> | ||||||
| </div> | ||||||
| </div> | ||||||
| <a id="leaveProject" slot="footer" href="#">LEAVE PROJECT</a> | ||||||
| <a id="leaveProject" slot="footer" tabindex="0">LEAVE PROJECT</a> | ||||||
|
||||||
| <a id="leaveProject" slot="footer" tabindex="0">LEAVE PROJECT</a> | |
| <a id="leaveProject" slot="footer" tabindex="0" href="javascript:void(0)">LEAVE PROJECT</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This anchor element lacks keyboard accessibility until the href is set by JavaScript. Anchors without href don't respond to Enter key presses, even with tabindex="0". Consider using a placeholder href like "javascript:void(0)" or better yet, converting these to button elements that trigger navigation programmatically. Alternatively, initialize with a disabled state until the JavaScript sets the href.