Skip to content

Commit

Permalink
style(SLB-386): figcaption and thead adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop committed May 28, 2024
1 parent 7d195af commit 54aafb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const Mixed = {
args: {
markup: `
<h1>Heading 1</h1>
<figure class="wp-block-table"><table><thead><tr><th>POSITION</th><th>CITY</th><th>RATING</th></tr></thead><tbody><tr><td><strong>1.</strong></td><td>Zurich</td><td><strong>10/10</strong></td></tr><tr><td><strong>2.</strong></td><td>Geneva</td><td><strong>9/10</strong></td></tr><tr><td><strong>3.</strong></td><td>Lucerne</td><td><strong>9/10</strong></td></tr><tr><td><strong>4.</strong></td><td>Winterthur</td><td><strong>8.5/10</strong></td></tr><tr><td><strong>5.</strong></td><td>Basel</td><td><strong>8/10</strong></td></tr></tbody></table><figcaption>Table caption</figcaption></figure>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h2>Heading 2</h2>
<p>Lorem ipsum <a href="/">dolor sit</a> amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
Expand Down
9 changes: 7 additions & 2 deletions packages/ui/src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
@apply w-full text-sm text-left rtl:text-right text-gray-500;

thead {
@apply text-xs text-gray-700 uppercase bg-gray-50;
@apply text-xs uppercase bg-gray-50;

th {
@apply px-6 py-3;
@apply px-6 py-3 text-gray-500 leading-[1.125rem];
}
}

Expand All @@ -83,3 +83,8 @@
}
}
}

.wp-block-table table + figcaption,
.prose table + figcaption {
@apply mt-3 flex justify-center gap-x-2 text-sm leading-6 text-gray-500;
}

0 comments on commit 54aafb0

Please sign in to comment.