Enhance dropdown components for better accessibility (#2370)

This commit is contained in:
Paweł Kuna
2025-05-15 23:49:10 +02:00
committed by GitHub
parent 44a1979b78
commit b5e2f54bf8
12 changed files with 23 additions and 16 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
<!-- BEGIN NAVBAR LOGO -->
{%- assign prefix = include.prefix | default: 'navbar' -%}
{%- assign breakpoint = include.breakpoint | default: 'lg' -%}
{%- capture class-attr %}class="{{ prefix }}-brand {{ prefix }}-brand-autodark{% if include.class %} {{ include.class }}{% endif %}"{%- endcapture -%}
{%- capture class-attr %} class="{{ prefix }}-brand {{ prefix }}-brand-autodark{% if include.class %} {{ include.class }}{% endif %}"{%- endcapture -%}
{%- if include.header -%}
<div {{ class-attr }}>
<a href="{{ page | relative }}{% if include.href %}/{{ include.href }}{% endif %}">
<a href="{{ page | relative }}{% if include.href %}/{{ include.href }}{% endif %}" aria-label="{{ site.title }}">
{%- else -%}
<a href="{{ page | relative }}{% if include.href %}/{{ include.href }}{% endif %}" {{ class-attr }}>
<a href="{{ page | relative }}{% if include.href %}/{{ include.href }}{% endif %}" aria-label="{{ site.title }}"{{ class-attr }}>
{%- endif -%}
{%- unless include.hide-logo -%}
{%- if include.small-logo -%}