Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit ce6e2ff

Browse files
committed
fix(autocomplete): md-not-found template is not styled properly
- also fix some styling issues with the docs-menu sidenav caused by CSS specificity changes Fixes #11852
1 parent 85c9f52 commit ce6e2ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/app/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ ul {
155155
margin: 0;
156156
padding: 0;
157157
}
158-
ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item) {
158+
main ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item) {
159159
margin-left: 16px;
160160
padding: 0;
161161
margin-top: 3px;
162162
list-style-position: inside;
163163
}
164-
ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item):first-child {
164+
main ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item):first-child {
165165
margin-top: 0;
166166
}
167167
/************

src/components/autocomplete/js/autocompleteDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function MdAutocomplete ($$mdSvgRegistry) {
429429
var templateTag = element.find('md-not-found').detach(),
430430
template = templateTag.length ? templateTag.html() : '';
431431
return template
432-
? '<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"\
432+
? '<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" class="md-autocomplete-suggestion"\
433433
md-autocomplete-parent-scope>' + template + '</li>'
434434
: '';
435435
}

0 commit comments

Comments
 (0)