]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: Add `.table` class to color tables example (#41691)
authorStefan Korn <stefan.korn.github@jossgrund.net>
Sat, 6 Sep 2025 20:25:43 +0000 (22:25 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Sep 2025 20:25:43 +0000 (22:25 +0200)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
site/src/content/docs/content/tables.mdx

index 3c47b930a640d9a4fe166e5f47500fcdad8dcad5..4798ae1a68dbf8182a1e8b325aa490d396dace80 100644 (file)
@@ -52,7 +52,7 @@ Use contextual classes to color tables, table rows or individual cells.
 
 <Code code={[
   `<!-- On tables -->`,
-  ...getData('theme-colors').map((themeColor) => `<table class="table-${themeColor.name}">...</table>`),
+  ...getData('theme-colors').map((themeColor) => `<table class="table table-${themeColor.name}">...</table>`),
   `
 <!-- On rows -->`,
   ...getData('theme-colors').map((themeColor) => `<tr class="table-${themeColor.name}">...</tr>`),