Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions site/data/sidebar-foundation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
- title: Approach
- title: Options
- title: Tokens
draft: true
coming_soon: true
- title: Color palette
- title: Color modes
- title: CSS variables
- title: Reboot
- title: Typography
- title: Images
draft: true
coming_soon: true
- title: Figures
draft: true
coming_soon: true
- title: Component
- title: Form validation
15 changes: 6 additions & 9 deletions site/src/components/DocsSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,20 @@ const sidebar = sidebarMap[slug] ? getData(`sidebar-${sidebarMap[slug]}`) : []
class:list={[
'bd-links-link',
'd-inline-flex',
'row-gap-2xsmall',
'column-gap-2xsmall',
'align-items-center',
{ active },
{ 'text-decoration-line-through': page.coming_soon }
]}
aria-current={active ? 'page' : undefined}
title={page.draft ? 'draft component' : page.coming_soon ? 'page is not yet available' : null}
>
{page.title}{' '}
{page.title}
{page.draft && (
<>
<svg width="1rem" height="1rem" aria-hidden="true">
<use xlink:href={getVersionedDocsPath('assets/img/ouds-web-sprite.svg#traffic-cone')} />
</svg>
<span class="visually-hidden">draft component</span>
</>
<svg width="1rem" height="1rem" aria-hidden="true">
<use xlink:href={getVersionedDocsPath('assets/img/ouds-web-sprite.svg#traffic-cone')} />
</svg>
)}
{page.coming_soon && <span class="visually-hidden">page is not yet available</span>}
</a>
</li>
)
Expand Down
Loading