Skip to content

Commit 3819c8e

Browse files
fix: markdown styling for label config option (#2455)
* add support for label config option * fix styling with tailwind typography plugin
1 parent 0e8e0a3 commit 3819c8e

File tree

4 files changed

+62
-5
lines changed

4 files changed

+62
-5
lines changed

web/package-lock.json

Lines changed: 52 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@tailwindcss/forms": "^0.5.10",
16+
"@tailwindcss/typography": "^0.5.15",
1617
"@tanstack/react-query": "^5.81.5",
1718
"lucide-react": "^0.525.0",
1819
"react": "^19.1.0",

web/src/components/wizard/config/ConfigurationStep.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,17 @@ const ConfigurationStep: React.FC<ConfigurationStepProps> = ({ onNext }) => {
245245
case 'label':
246246
return (
247247
<div className="mb-4" data-testid={`label-${item.name}`}>
248-
<div className="text-sm font-medium text-gray-700 break-words">
248+
<div className="prose prose-sm prose-gray max-w-none">
249249
<Markdown
250250
remarkPlugins={[remarkGfm]}
251251
components={{
252252
a: ({ ...props }) => (
253-
<a {...props} target="_blank" rel="noopener noreferrer" />
253+
<a
254+
{...props}
255+
target="_blank"
256+
rel="noopener noreferrer"
257+
className="text-blue-600 hover:text-blue-800 underline"
258+
/>
254259
),
255260
}}
256261
>

web/tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default {
1313
addVariant("is-disabled", "&[disabled]");
1414
}),
1515
// eslint-disable-next-line @typescript-eslint/no-var-requires
16-
require("@tailwindcss/forms")({ strategy: "class" })
16+
require("@tailwindcss/forms")({ strategy: "class" }),
17+
require("@tailwindcss/typography")
1718
]
1819
};

0 commit comments

Comments
 (0)