Skip to content
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<FloatLabel
variant="in"
variant="on"
:unstyled="hideLayoutField"
:pt="{ root: { class: '[&_label]:!bg-transparent [&_label]:!text-[color:var(--p-text-color)]' } }"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove Tailwind ! important utilities from the FloatLabel passthrough.

Line 5 uses !-prefixed Tailwind utilities, which are disallowed. Remove the ! and rely on selector specificity/cascade instead.

✅ Proposed fix
-    :pt="{ root: { class: '[&_label]:!bg-transparent [&_label]:!text-[color:var(--p-text-color)]' } }"
+    :pt="{ root: { class: '[&_label]:bg-transparent [&_label]:text-[color:var(--p-text-color)]' } }"

As per coding guidelines, Never use !important or the ! important prefix for tailwind classes; instead find and correct the interfering !important classes.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
variant="on"
:unstyled="hideLayoutField"
:pt="{ root: { class: '[&_label]:!bg-transparent [&_label]:!text-[color:var(--p-text-color)]' } }"
variant="on"
:unstyled="hideLayoutField"
:pt="{ root: { class: '[&_label]:bg-transparent [&_label]:text-[color:var(--p-text-color)]' } }"
🤖 Prompt for AI Agents
In `@src/renderer/extensions/vueNodes/widgets/components/WidgetTextarea.vue`
around lines 3 - 5, The FloatLabel passthrough in WidgetTextarea.vue uses
Tailwind's important prefix in the :pt root class string; remove the '!'
prefixes so the class becomes "[&_label]:bg-transparent
[&_label]:text-[color:var(--p-text-color)]" (update the :pt value passed to the
FloatLabel/variant="on" block), and if the styling is overridden elsewhere, fix
specificity via selector ordering or more specific selectors rather than using
'!'. Ensure the change targets the :pt prop in WidgetTextarea.vue where the root
class is defined.

:class="
cn(
'rounded-lg space-y-1 focus-within:ring focus-within:ring-component-node-widget-background-highlighted transition-all',
Expand Down
Loading