Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Toerien committed Jan 18, 2025
1 parent c30d113 commit 69d62e3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ $tokens: (
min-width: 12.5rem;
outline: none;
user-select: none;
width: 100%;

.field-body {
display: inline-flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import {
ChangeDetectionStrategy,
Component,
contentChildren,
effect,
input,
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { MdComponent } from '../../common/base/md.component';
import { MdListItemComponent } from '@wtprograms/material-design';

@Component({
selector: 'md-list',
Expand All @@ -12,6 +16,23 @@ import { MdComponent } from '../../common/base/md.component';
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [CommonModule],
})
export class MdListComponent extends MdComponent {}
export class MdListComponent extends MdComponent {
readonly interactive = input<boolean>();
readonly listItems = contentChildren(MdListItemComponent);

constructor() {
super();
effect(() => {
const interactive = this.interactive();
if (interactive === undefined) {
return;
}
const listItems = this.listItems();
for (const listItem of listItems) {
listItem.interactive.set(interactive);
}
});
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export class MdPopoverComponent extends MdComponent {
} else {
this._hostElement.style.width = '';
}
const fontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
const middleware: any[] = [
offset(this.offset()),
this.flip() ? flip() : undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ $layouts: ('primary', 'secondary');
}

::ng-deep md-icon {
--md-comp-icon-size: 2.5;
--md-comp-icon-filled: var(--_icon-filled);
}

Expand Down

0 comments on commit 69d62e3

Please sign in to comment.