Skip to content

Commit

Permalink
Fix link color for component links.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 29, 2024
1 parent ec1a86b commit f3bd7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/schema-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default class SchemaTable extends LitElement {
<div class='td key-type' part="schema-type">
${displaySchemaLink
? html`<div class="schema-link" style="overflow: hidden; text-overflow: ellipsis" @click='${() => this.scrollToSchemaComponentByName(displaySchemaLink)}'>
${dataType === 'array' ? '[' : ''}<span style="color: var(--primary)">${detailObjType}</span>${dataType === 'array' ? ']' : ''}
${dataType === 'array' ? '[' : ''}<span style="color: var(--secondary-color)">${detailObjType}</span>${dataType === 'array' ? ']' : ''}
</div>`
: html`<div>${(data['::type'] || '').includes('xxx-of') ? '' : `${dataType === 'array' ? '[' : ''}${detailObjType}${dataType === 'array' ? ']' : ''}`}</div>`
}
Expand Down

0 comments on commit f3bd7eb

Please sign in to comment.