Skip to content

Commit 9f38da2

Browse files
committed
2 parents b1cc554 + a36dd13 commit 9f38da2

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

src/BootstrapBlazor.Server/Components/Samples/Table/TablesAttribute.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public class Foo
4242

4343
<p class="code-label">@Localizer["TableAttributeIntro"]</p>
4444

45+
<p><code>TableColumn</code> > <code>AutoGenerateClassAttribute</code> > <code>AutoGenerateColumnAttribute</code></p>
46+
4547
<ul class="ul-demo">
4648
<li>@((MarkupString)Localizer["TableAttributeIntroLI1"].Value)</li>
4749
<li>@((MarkupString)Localizer["TableAttributeIntroLI2"].Value)</li>
@@ -60,7 +62,6 @@ public class Foo
6062
public string? Name { get; set; }
6163
}</Pre>
6264

63-
<p>@((MarkupString)Localizer["TableAttributeQA1"].Value)</p>
6465
<p>@((MarkupString)Localizer["TableAttributeQAP2"].Value)</p>
6566

6667
<p class="code-label">@Localizer["TableAttributeColumn"]</p>

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5733,9 +5733,9 @@
57335733
"TableAttributeIntro": "Priority",
57345734
"TableAttributeIntroLI1": "Only <code>AutoGenerateClassAttribute</code> been set and its parameter value is used as the basis",
57355735
"TableAttributeIntroLI2": "Only <code>AutoGenerateColumnAttribute</code> been set and its parameter value is used as the basis",
5736-
"TableAttributeIntroLI3": "Set <code>AutoGenerateClassAttribute</code> and set <code>AutoGenerateColumnAttribute</code> to combine the two parameter values ​​and take the opposite value of their default value",
5736+
"TableAttributeIntroLI3": "Write <code>AutoGenerateClassAttribute</code> and write <code>AutoGenerateColumnAttribute</code> to merge the two parameter values and take the value of <code>AutoGenerateColumnAttribute</code>",
57375737
"TableAttributeIntroLI4": "When setting the TableColumn parameter value, the TableColumn parameter value is the final value.",
5738-
"TableAttributeQA1": "Set <code>AutoGenerateClassAttribute</code> and set <code>AutoGenerateColumnAttribute</code> to combine the two parameter values ​​and take the opposite value of their default values. Example",
5738+
"TableAttributeQA1": "I wrote <code>AutoGenerateClassAttribute</code> and <code>AutoGenerateColumnAttribute</code> to combine the two parameter values and give an example",
57395739
"TableAttributeQAP1": "Because <code>AutoGenerateClassAttribute</code> sets <code>Filterable</code> to <code>true</code>, and <code>AutoGenerateColumn</code> keeps <code>Filterable</code> to its default value of <code>false</code>, the final <code>UI</code> uses <code>true</code>",
57405740
"TableAttributeQAP2": "Since <code>AutoGenerateClassAttribute</code> is not set, <code>Sortable</code> remains at the default value of <code>false</code>, and <code>AutoGenerateColumn</code> sets the <code>Sortable</code> value to <code>true</code>, the final <code>UI</code> uses <code>true</code>",
57415741
"TableAttributeQAP3": "In the latest version, some parameter values ​​such as <code>Filterable</code> of <code>TableColumn</code> are changed to <b>nullable data type</b>, and their default value is changed from <code>false</code> to <code>null</code>. Therefore, as long as the value of the <code>Filterable</code> parameter of <code>TableColumn</code> is not null, the <code>TableColumn</code> value is used as the final <code>UI</code> value.",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5733,9 +5733,9 @@
57335733
"TableAttributeIntro": "权重说明",
57345734
"TableAttributeIntroLI1": "只写了 <code>AutoGenerateClassAttribute</code> 以其参数值为准",
57355735
"TableAttributeIntroLI2": "只写了 <code>AutoGenerateColumnAttribute</code> 以其参数值为准",
5736-
"TableAttributeIntroLI3": "写了 <code>AutoGenerateClassAttribute</code> 并且写了 <code>AutoGenerateColumnAttribute</code> 合并两者参数值取其默认值的相反值",
5736+
"TableAttributeIntroLI3": "写了 <code>AutoGenerateClassAttribute</code> 并且写了 <code>AutoGenerateColumnAttribute</code> 合并两者参数值取 <code>AutoGenerateColumnAttribute</code> 值",
57375737
"TableAttributeIntroLI4": "写了 <code>TableColumn</code> <code>参数值时以 TableColumn</code> 参数值为最终值",
5738-
"TableAttributeQA1": "写了 <code>AutoGenerateClassAttribute</code> 并且写了 <code>AutoGenerateColumnAttribute</code> 合并两者参数值取其默认值的相反值举例说明",
5738+
"TableAttributeQA1": "写了 <code>AutoGenerateClassAttribute</code> 并且写了 <code>AutoGenerateColumnAttribute</code> 合并两者参数值取值举例说明",
57395739
"TableAttributeQAP1": "由于 <code>AutoGenerateClassAttribute</code> 设置 <code>Filterable</code> 值为 <code>true</code>,而 <code>AutoGenerateColumn</code> 保持 <code>Filterable</code> 默认值 <code>false</code> 最终 <code>UI</code> 使用 <code>true</code>",
57405740
"TableAttributeQAP2": "由于 <code>AutoGenerateClassAttribute</code> 未设置 <code>Sortable</code> 保持默认值 <code>false</code>,而 <code>AutoGenerateColumn</code> 设置 <code>Sortable</code> 值为 <code>true</code> 最终 <code>UI</code> 使用 <code>true</code>",
57415741
"TableAttributeQAP3": "最新版本 <code>TableColumn</code> 的 <code>Filterable</code> 等一些参数值均更改为 <b>可为空数据类型</b>,其默认值由原来的 <code>false</code> 更改为 <code>null</code>,可由此判断,只要 <code>TableColumn</code> 的参数 <code>Filterable</code> 值不为空,即以 <code>TableColumn</code> 值为最终 <code>UI</code> 值",

src/BootstrapBlazor/Components/Badge/Badge.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace BootstrapBlazor.Components;
1111
public partial class Badge
1212
{
1313
private string? ClassString => CssBuilder.Default("badge")
14-
.AddClass($"bg-{Color.ToDescriptionString()}", Color != Color.None)
14+
.AddClass($"text-bg-{Color.ToDescriptionString()}", Color != Color.None)
1515
.AddClass("rounded-pill", IsPill)
1616
.AddClassFromAttributes(AdditionalAttributes)
1717
.Build();
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.badge {
2-
&.bg-secondary, &.bg-light {
3-
--bs-badge-color: #{$bb-badge-color};
1+
.badge {
2+
&.text-bg-secondary, &.text-bg-light {
3+
color: $bb-badge-color !important;
44
}
55
}

test/UnitTest/Components/DropdownWidgetTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void BadgeColor_OK()
7777
}));
7878
});
7979

80-
var ele = cut.Find(".bg-success");
80+
var ele = cut.Find(".text-bg-success");
8181
Assert.NotNull(ele);
8282
}
8383

0 commit comments

Comments
 (0)