Skip to content

Commit

Permalink
fix: Show where you are in docs navigation (#14483)
Browse files Browse the repository at this point in the history
  • Loading branch information
petesfrench authored Nov 19, 2024
1 parent 34f59f2 commit e7d3a39
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions templates/templates/docs/shared/_docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@
{% if expandable %}
{% if element.children %}
<button class="p-side-navigation__expand"
aria-expanded="{% if element.is_active or element.has_active_child %}"
"
true
"
{% else %}
"
false
"
{% endif %}
aria-label="show submenu for {{ element.navlink_text }}"></button>
aria-expanded="{% if element.is_active or element.has_active_child %}true{% else %}false{% endif %}" aria-label="
show
submenu
for
{{ element.navlink_text }}
"></button>
{% endif %}
{{ create_navigation(element.children, expandable, element.is_active or element.has_active_child) }}
{% else %}
Expand Down

0 comments on commit e7d3a39

Please sign in to comment.