Skip to content

Commit

Permalink
docs(catalog): hide the nav bar's default dots in ff and fix tab navi…
Browse files Browse the repository at this point in the history
…gation

PiperOrigin-RevId: 563257951
  • Loading branch information
Elliott Marquez authored and copybara-github committed Sep 7, 2023
1 parent 2e25bf8 commit 8d3abd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/site/_includes/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
<!-- unrelated change to components -->
{% block content %}{{ content | safe }}{% endblock %}
</main>
<md-list listtabindex="-1">
<md-list list-tabindex="-1">
{% for component in collections.component|filtersort('data.name') %}
<li>
<md-list-item
href="{{ component.url }}"
headline="{{ component.data.name }}"
{% if component.url == page.url %}selected{% endif %}
data-role=""
itemtabindex="0"
item-tabindex="0"
></md-list-item>
</li>
{% endfor %}
Expand Down
9 changes: 9 additions & 0 deletions catalog/site/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ nav-drawer md-list-item[href][selected] {
);
}

nav-drawer md-list li {
/* Hide <li> dots in Firefox */
list-style-type: none;
}

nav-drawer md-list md-list-item::part(focus-ring) {
--md-focus-ring-shape: var(--catalog-shape-xl);
}

@media (forced-colors: active) {
nav-drawer md-list-item[href][selected] {
border: 4px double CanvasText;
Expand Down

0 comments on commit 8d3abd4

Please sign in to comment.