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

Commit

Permalink
fix(autocomplete): md-not-found template is not styled properly
Browse files Browse the repository at this point in the history
- also fix some styling issues with the docs-menu sidenav
  caused by CSS specificity changes

Fixes #11852
  • Loading branch information
Splaktar committed Mar 13, 2020
1 parent 85c9f52 commit ce6e2ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ ul {
margin: 0;
padding: 0;
}
ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item) {
main ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item) {
margin-left: 16px;
padding: 0;
margin-top: 3px;
list-style-position: inside;
}
ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item):first-child {
main ul:not(.md-autocomplete-suggestions) li:not(.md-nav-item):first-child {
margin-top: 0;
}
/************
Expand Down
2 changes: 1 addition & 1 deletion src/components/autocomplete/js/autocompleteDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function MdAutocomplete ($$mdSvgRegistry) {
var templateTag = element.find('md-not-found').detach(),
template = templateTag.length ? templateTag.html() : '';
return template
? '<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"\
? '<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" class="md-autocomplete-suggestion"\
md-autocomplete-parent-scope>' + template + '</li>'
: '';
}
Expand Down

0 comments on commit ce6e2ff

Please sign in to comment.