Description
When I use the following syntax for an admonition block with TIP variant.
[This is the tip contents]{{admonition tip}}
The block is displayed but its style is incorrect. I expect it to have "custom" variant style as in this doc: https://www.patternfly.org/components/alert#alert-variants.
| What I expect to see |
What I saw instead |
 |
 |
Environment
Using v5.3.0 with Patternfly 5.
"@patternfly/quickstarts": "^5.3.0",
"@patternfly/react-catalog-view-extension": "^5.0.0",
"@patternfly/react-charts": "^7.3.0",
"@patternfly/react-core": "^5.3.4",
"@patternfly/react-icons": "^5.3.2",
"@patternfly/react-styles": "^5.3.1",
"@patternfly/react-table": "^5.3.4",
"@patternfly/react-topology": "^5.2.0",
Others
I think a quick fix would be to set the variant of the TIP admonition to custom or simply unset it. See below:
|
[AdmonitionType.TIP]: { variant: 'default', customIcon: <LightbulbIcon /> }, |
Reference: https://www.patternfly.org/components/alert#alert
Description
When I use the following syntax for an admonition block with
TIPvariant.The block is displayed but its style is incorrect. I expect it to have "custom" variant style as in this doc: https://www.patternfly.org/components/alert#alert-variants.
Environment
Using
v5.3.0with Patternfly 5.Others
I think a quick fix would be to set the variant of the
TIPadmonition tocustomor simply unset it. See below:patternfly-quickstarts/packages/module/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx
Line 20 in 1a067a4
Reference: https://www.patternfly.org/components/alert#alert