Skip to content
Merged
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@astrojs/check": "^0.9.10",
"prettier": "^3.9.6",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-astro": "^1.0.0",
"prettier-plugin-svelte": "^4.1.1",
"svelte-check": "^4.7.6",
"typescript": "^6.0.3"
Expand Down
133 changes: 58 additions & 75 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/DistroHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const { distro } = Astro.props;
height="96"
/>
<div>
<h1 id="_top">ROS {distro.ros} {title(distro)}</h1>
<h1 id="_top">
ROS {distro.ros} {title(distro)}
</h1>
<p class="support">{supportLine(distro)}</p>
</div>
<!-- The label is spelled out for screen readers because the repo name is
Expand Down
38 changes: 18 additions & 20 deletions src/components/DistroTabs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,26 @@ const { current } = Astro.props;
---

<nav class="distros" aria-label="Distributions">
{
tabOrder().map((d) => (
<a
class:list={["distro", { "distro--active": d.name === current }]}
href={`/${d.name}.html`}
aria-current={d.name === current ? "page" : undefined}
>
{d.name}
{d.status === "eol" && (
<Fragment>
{/* The mark is the abbreviation sighted readers see; the words
{tabOrder().map((d) => (
<a
class:list={["distro", { "distro--active": d.name === current }]}
href={`/${d.name}.html`}
aria-current={d.name === current ? "page" : undefined}
>
{d.name}
{d.status === "eol" && (
<Fragment>
{/* The mark is the abbreviation sighted readers see; the words
behind it go to assistive tech, and the tooltip expands it
for anyone who does not know the initials. */}
<span class="distro__eol" aria-hidden="true" title="End of life">
EOL
</span>
<span class="sr-only"> (end of life)</span>
</Fragment>
)}
</a>
))
}
<span class="distro__eol" aria-hidden="true" title="End of life">
EOL
</span>
<span class="sr-only"> (end of life)</span>
</Fragment>
)}
</a>
))}
</nav>

<style>
Expand Down
Loading