Skip to content

Commit

Permalink
Merge pull request #151 from studio1902/feature/add-missing-ide-comments
Browse files Browse the repository at this point in the history
Add missing IDE helper comments
  • Loading branch information
robdekort committed Oct 25, 2021
2 parents 9ef4c90 + 8223d21 commit 3f68081
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions dev/resources/views/navigation/_breadcrumbs.antlers.html
Expand Up @@ -2,6 +2,7 @@
@name Breadcrumbs
@desc Breadcrumbs display the current page in it's page hierarcy.
#}}

<nav aria-label="breadcrumb">
<ol
vocab="https://schema.org/"
Expand Down
2 changes: 1 addition & 1 deletion dev/resources/views/navigation/_main.antlers.html
@@ -1,6 +1,6 @@
{{#
@name Main navigation
@desc The sites main navigation rendered on each page. It's 2 levels deep by default and uses AlpineJS for interactivity. There's a desktop and a mobile version.
@desc The sites main navigation rendered on each page. There's a desktop and a mobile version.
#}}

{{# The desktop navigation. Hidden on smaller screen. Shown from md and up. #}}
Expand Down
5 changes: 5 additions & 0 deletions dev/resources/views/navigation/_main_desktop.antlers.html
@@ -1,3 +1,8 @@
{{#
@name Main desktop navigation
@desc The sites main desktop navigation rendered on each page. It's 2 levels deep by default and uses AlpineJS for interactivity.
#}}

<nav class="hidden md:block">
<ul class="flex items-center space-x-8">
{{ nav:main max_depth="2" include_home="true" }}
Expand Down
5 changes: 5 additions & 0 deletions dev/resources/views/navigation/_main_mobile.antlers.html
@@ -1,3 +1,8 @@
{{#
@name Main mobile navigation
@desc The sites main mobile navigation rendered on each page. It's 2 levels deep by default and uses AlpineJS for interactivity.
#}}

<nav
x-data="{ mobileNavOpen: false }"
x-trap="mobileNavOpen"
Expand Down
5 changes: 5 additions & 0 deletions dev/resources/views/navigation/_skip_to_content.antlers.html
@@ -1,3 +1,8 @@
{{#
@name Skip to content button
@desc The first button that pops up when a user tabs. This enables them to skip directly to the content.
#}}

<a class="fixed bottom-safe left-8 py-2 px-4 bg-primary text-white text-sm rounded shadow-lg font-bold translate-y-24 opacity-0 focus-visible:translate-y-0 focus-visible:opacity-100 motion-safe:transition-all" href="#content" tabindex="1">
{{ trans:strings.skip_to_content }}
</a>

0 comments on commit 3f68081

Please sign in to comment.