Skip to content

Commit 926235b

Browse files
authored
Merge pull request #47365 from dipesh-rawat/admonition-table-issue
Fix table rendering issue inside admonition blocks
2 parents 136dbb8 + d566b58 commit 926235b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

assets/scss/_custom.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,4 +1469,15 @@ body.td-search #search {
14691469
section.k8s-birthday-override:has(div.k8s-birthday-override.revert-to-previous input:not(:checked)) + section {
14701470
display: none;
14711471
visibility: hidden;
1472+
}
1473+
1474+
/* Apply site-wide table styles for tables in alert callouts (note, caution, warning) */
1475+
.alert {
1476+
&.alert-info, &.alert-caution, &.alert-danger {
1477+
> table {
1478+
@extend .table-striped;
1479+
@extend .table-responsive;
1480+
@extend .table;
1481+
}
1482+
}
14721483
}

content/en/docs/test.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ Notes catch the reader's attention without a sense of urgency.
370370
371371
You can have multiple paragraphs and block-level elements inside an admonition.
372372
373-
| Or | a | table |
373+
You can also add tables to organize and highlight key information.
374+
375+
| Header 1 | Header 2 | Header 3 |
376+
| -------- | -------- | -------- |
377+
| Data 1 | Data A | Info X |
378+
| Data 2 | Data B | Info Y |
374379
{{< /note >}}
375380
376381
{{< caution >}}

0 commit comments

Comments
 (0)