ketekny-ui-kit 1.0.106 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ui/kOptionGroup.vue +3 -6
package/package.json
CHANGED
package/src/ui/kOptionGroup.vue
CHANGED
|
@@ -240,7 +240,7 @@ export default {
|
|
|
240
240
|
const pieces = ["items-center gap-3 rounded-lg border px-3 py-2.5 transition"];
|
|
241
241
|
|
|
242
242
|
if (selected) {
|
|
243
|
-
pieces.push(styles.selBg);
|
|
243
|
+
pieces.push(styles.selBg, styles.text);
|
|
244
244
|
if (colored) pieces.push(`border-l-2 ${styles.accent}`);
|
|
245
245
|
} else if (colored) {
|
|
246
246
|
pieces.push(styles.text);
|
|
@@ -255,11 +255,8 @@ export default {
|
|
|
255
255
|
|
|
256
256
|
if (this.isTableVariant) {
|
|
257
257
|
if (this.isSelected(option)) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
return `items-center gap-3 border-b border-slate-200 px-3 py-3 last:border-b-0 dark:border-slate-700 ${styles.softBg} ${styles.text}`;
|
|
261
|
-
}
|
|
262
|
-
return "items-center gap-3 border-b border-slate-200 bg-primary/10 px-3 py-3 text-primary last:border-b-0 dark:border-slate-700 dark:bg-primary/15 dark:text-slate-100";
|
|
258
|
+
const styles = this.intentStyles(option);
|
|
259
|
+
return `items-center gap-3 border-b border-slate-200 px-3 py-3 last:border-b-0 dark:border-slate-700 ${styles.softBg} ${styles.text}`;
|
|
263
260
|
}
|
|
264
261
|
return "items-center gap-3 border-b border-slate-200 bg-white px-3 py-3 text-gray-700 hover:bg-slate-50 last:border-b-0 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-200 dark:hover:bg-slate-800";
|
|
265
262
|
}
|