Skip to content

Commit 1e145b6

Browse files
committed
Fix no-value text opacity by using ternary class binding
The static text-slate-600 class was overriding the dynamically added text-slate-300/60 due to CSS cascade order. Switch to a ternary so the text color is swapped rather than layered.
1 parent 8e258b3 commit 1e145b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

resources/template.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ class="inline-flex items-center gap-2 group hover:text-slate-900 dark:hover:text
128128
</svg>
129129
</a>
130130
</td>
131-
<td class="py-1 lg:py-2.5 px-6 lg:px-4 group/cell relative text-slate-600 dark:text-slate-300" style="overflow-wrap: anywhere"
132-
:class="isNoValue(config.localValue) && 'text-slate-300/60 dark:text-slate-600/60 italic'">
131+
<td class="py-1 lg:py-2.5 px-6 lg:px-4 group/cell relative" style="overflow-wrap: anywhere"
132+
:class="isNoValue(config.localValue) ? 'text-slate-300/60 dark:text-slate-600/60 italic' : 'text-slate-600 dark:text-slate-300'"
133133
<span x-show="group.headings.length > 0" class="empty:hidden inline-block w-14 text-center lg:hidden py-0.5 mr-1 text-xs font-medium rounded border border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400" x-text="group.shortHeadings[1]"></span>
134134
<span x-html="isLongValue(config.localValue) && !config.expanded ? truncateValue(formatted(config.localValue)) : formatted(config.localValue)"></span>
135135
<button x-show="isLongValue(config.localValue)" @click="config.expanded = !config.expanded" class="ml-1 text-xs text-blue-600 dark:text-blue-400 hover:underline" x-text="config.expanded ? 'show less' : 'show more'"></button>
@@ -139,8 +139,8 @@ class="inline-flex items-center gap-2 group hover:text-slate-900 dark:hover:text
139139
</svg>
140140
</button>
141141
</td>
142-
<td x-show="config.hasMasterValue" class="py-1 lg:py-2.5 px-6 lg:px-4 group/cell relative text-slate-600 dark:text-slate-300" style="overflow-wrap: anywhere"
143-
:class="isNoValue(config.masterValue) && 'text-slate-300/60 dark:text-slate-600/60 italic'">
142+
<td x-show="config.hasMasterValue" class="py-1 lg:py-2.5 px-6 lg:px-4 group/cell relative" style="overflow-wrap: anywhere"
143+
:class="isNoValue(config.masterValue) ? 'text-slate-300/60 dark:text-slate-600/60 italic' : 'text-slate-600 dark:text-slate-300'"
144144
<span x-show="group.headings.length > 0" class="empty:hidden inline-block w-14 text-center lg:hidden py-0.5 mr-1 text-xs font-medium rounded border border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400" x-text="group.shortHeadings[2]"></span>
145145
<span x-html="formatted(config.masterValue)"></span>
146146
<button x-show="!isNoValue(config.masterValue)" @click="copyValue(config.masterValue)" class="copy-btn hidden lg:group-hover/cell:inline-flex absolute top-2 right-2 items-center justify-center p-1 rounded-md border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-400 dark:text-slate-500 hover:text-slate-600 dark:hover:text-slate-300 text-xs" title="Copy value">

0 commit comments

Comments
 (0)