ToastType doesn't apply classes to regular Toast, only the SimpleToast
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The issue identifies the class assignment in the regular Toast component and compares it with the SimpleToast assignment; it does not name file paths or tests. Start by locating both components and comparing how each builds its classes from ToastMessage.Type. Done means regular toasts display the color classes for their ToastType, matching the expected behavior in the report.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
It appears the regular Toast (with title and helptext) does not apply the color classes to the toast.
The SimpleToast however does pop up perfectly with a red background when set to danger.
To Reproduce
Steps to reproduce the behavior:
- Setup a ToastComponent
- Trigger a
ToastService.Notify(new(ToastType.Danger, "SimpleToast Danger Color" )) - Trigger a
ToastService.Notify(new(ToastType.Danger, "", "Toast", "HelpText", "regular 'Toast' Danger Color", false )) - Notice the color is not applied to the second toast.
Expected behavior
Both toast types to be styled to match the ToastType.
Screenshots
Versions (please complete the following information):
- .NET Version: .NET 10
- BlazorBootstrap: 3.5.0
- Blazor WebAssembly / Server: Server
- Blazor Interactive Render Mode: interactiveserver for Toast component
- Blazor Interactivity Location: page/component
Sample code
InvokeAsync(() => ToastService.Notify(new(ToastType.Success, "", "Toast", "HelpText", "Can't read this", false )));
Additional context
Little deeper dive reveals that in the simple toast we find this for the class assignment which looks correct:
On line 20:
protected override string? ClassNames => BlazorBootstrapComponentBase.BuildClassNames(base.Class, ("toast", true), (ToastMessage.Type.ToToastTextColorClass(), ToastMessage != null), (ToastMessage.Type.ToToastBackgroundColorClass(), ToastMessage != null));
but in the regular toast we find this:
On line 28:
protected override string? ClassNames => BlazorBootstrapComponentBase.BuildClassNames(base.Class, ("toast", true));
Perhaps I'm misunderstanding something, but I suspect it might be a bug.
- 主要言語
- HTML
- スター
- 1.2k
- フォーク
- 111
- 平均マージ
- 4分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vikramlearning/blazorbootstrap のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vikramlearning/blazorbootstrap#1388 ·
メンテナーはふだん 1 日以内に返信
-
NET 11 Supportオープン
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
vikramlearning/blazorbootstrap#1362 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
vikramlearning/blazorbootstrap#1346 ·
メンテナーはふだん 1 日以内に返信
-
Showcase: rich sample websites built with Blazor Bootstrap対応中かも @gvreddy04 が 8 日前に担当しました。 オープン
vikramlearning/blazorbootstrap#1343 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
area-tree-view new component
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
vikramlearning/blazorbootstrap#1339 ·
メンテナーはふだん 1 日以内に返信
vikramlearning/blazorbootstrap の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DioxusLabs/blitz#1614 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
boxlite-ai/boxlite#2777 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
quality-assurance
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#249 ·
メンテナーはふだん 1 日以内に返信
-
bug P3
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
メンテナーはふだん 1 日以内に返信