diff --git a/src/app/shared/nodes/node-list-field/node-list-field.css b/src/app/shared/nodes/node-list-field/node-list-field.css index d7cc41b..3344adc 100644 --- a/src/app/shared/nodes/node-list-field/node-list-field.css +++ b/src/app/shared/nodes/node-list-field/node-list-field.css @@ -85,18 +85,22 @@ .llm-array-count { flex: 0 0 auto; - min-width: 18px; - padding: 1px 6px; + min-width: 20px; + height: 18px; + padding: 0 6px; border-radius: 999px; - background: #e0e7ff; - color: #3730a3; - font-size: 10px; - font-weight: 600; - line-height: 1.4; + background: #4f46e5; + color: #ffffff; + font-size: 11px; + font-weight: 700; + line-height: 18px; text-align: center; + box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3); } -.llm-array-toggle:disabled .llm-array-count { - background: #f1f5f9; +/* Empty: still there to say "none", but quiet - nothing to open. */ +.llm-array-count.llm-array-count-empty { + background: transparent; color: #94a3b8; + box-shadow: inset 0 0 0 1px #cbd5e1; } diff --git a/src/app/shared/nodes/node-list-field/node-list-field.html b/src/app/shared/nodes/node-list-field/node-list-field.html index 85d8550..c244479 100644 --- a/src/app/shared/nodes/node-list-field/node-list-field.html +++ b/src/app/shared/nodes/node-list-field/node-list-field.html @@ -10,12 +10,12 @@ class="llm-array-toggle" [disabled]="!items.length" [attr.aria-expanded]="expanded()" - [attr.title]="items.length ? (expanded() ? 'Hide ' : 'Show ') + label.toLowerCase() : null" + [attr.aria-label]="label + ', ' + items.length + (items.length === 1 ? ' item' : ' items')" (pointerdown)="$event.stopPropagation()" (click)="toggle($event)"> - {{ label }} - {{ items.length }} + {{ label }} + {{ items.length }} @if (!readonly) {