Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Tip admonition block style is not applied correctly in v5

オープン
#323 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

Start with packages/module/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx at line 20 and reproduce the TIP syntax from the issue using PatternFly 5. Compare the rendered result with the Alert custom variant documentation. Done means the TIP admonition displays the expected custom styling.

索引モデルが issue の本文から書いたものです。

説明

bug P1 :star:

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
image image

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:

https://github.com/patternfly/patternfly-quickstarts/blob/1a067a4eaeb608119cb4e35c54b859370b9b84b4/packages/module/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx#L20

Reference: https://www.patternfly.org/components/alert#alert

主要言語
TypeScript
スター
15
フォーク
47
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

patternfly/patternfly-quickstarts のほかの issue

patternfly/patternfly-quickstarts の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。