Skip to content

#387 Links Section is added #388

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions components/ContentTemplates/LinksTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,47 @@ other places on the web */`}
</li>
</ul>
</TemplateSection>
<TemplateSection
sectionName="openInNewPage"
title="Open Links in a new page/window.">
<p>
You can use HTML attribute <strong>target</strong> to open the linked
documents.
<ul>
<li>
<strong>_blank:</strong> Opens the link in a new tab/window. Great
for external links, PDFs, or downloads. But remember accessibility
concerns: screen reader announcements, focus management, user
confusion.
</li>
<li>
<strong>_self (default):</strong> Opens the link in the current
frame/window. Classic behavior, but can lose user context for
complex interactions.
</li>
<li>
<strong>_parent:</strong> Opens the link in the parent
frame/window (if framesets are used). Not as common nowadays, but
can be useful for specific layouts.
</li>
<li>
<strong>_top:</strong> Opens the link in the entire browser
window, replacing the current content. Can be jarring for users,
use sparingly.
</li>
<li>
<strong>Named frames:</strong> Opens the link in a pre-defined
frame within the current page. Less common with modern layouts,
but still supported.
</li>
</ul>
<CodeBlock
codeSnippet={`<a href="https://accessibleweb.dev" target="_blank">Visit Accessible Web Dev</a>
<!--This Linked page/document would open in a new page/window.-->`}
languageType={"html"}
/>
</p>
</TemplateSection>
<TemplateSection sectionName="linkImage" title="Image and Icon Links">
<p>
You can turn an image or icon into a clickable link that takes you to
Expand Down
Loading