Docs: Add `.table` class to color tables example (#41691)

Co-authored-by: Julien Déramond <juderamond@gmail.com>
This commit is contained in:
Stefan Korn 2025-09-06 22:25:43 +02:00 committed by GitHub
parent 22b1582001
commit a715174c55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ Use contextual classes to color tables, table rows or individual cells.
<Code code={[ <Code code={[
`<!-- On tables -->`, `<!-- 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 -->`, <!-- On rows -->`,
...getData('theme-colors').map((themeColor) => `<tr class="table-${themeColor.name}">...</tr>`), ...getData('theme-colors').map((themeColor) => `<tr class="table-${themeColor.name}">...</tr>`),