Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: icore-open table row header border #690

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 118 additions & 33 deletions docs/src/routes/(docs)/components/table-base/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
<SideMenu>
<ul>
<li><a href="#introduction">Introductie</a></li>
<li><a href="#examples">Voorbeelden</a></li>
<li>
<a href="#examples">Voorbeelden</a>
<ul>
<li><a href="#example-base">Basis</a></li>
<li><a href="#example-footer">Tabel met footer</a></li>
<li><a href="#example-row-headers">Tabel met rij-headers</a></li>
</ul>
</li>
<li><a href="#requirements">Benodigde bestanden</a></li>
</ul>
</SideMenu>
Expand All @@ -37,38 +44,38 @@

<h2>Voorbeelden</h2>

<h3>Basis</h3>
<h3 id="example-base">Basis</h3>
<h4>Visueel voorbeeld</h4>
<div class="horizontal-scroll">
<table>
<caption> Basisvoorbeeld tabel: </caption>
<caption>Basisvoorbeeld tabel:</caption>
<thead>
<tr>
<th scope="col">Table header heading 1</th>
<th scope="col">Table header heading 2</th>
<th scope="col">Table header heading 3</th>
<th scope="col">Kolom 1</th>
<th scope="col">Kolom 2</th>
<th scope="col">Kolom 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
</tbody>
</table>
Expand All @@ -83,70 +90,70 @@
<caption>Basisvoorbeeld tabel:</caption>
<thead>
<tr>
<th scope="col">Table header heading 1</th>
<th scope="col">Table header heading 2</th>
<th scope="col">Table header heading 3</th>
<th scope="col">Kolom 1</th>
<th scope="col">Kolom 2</th>
<th scope="col">Kolom 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
</tbody>
</table>
</div>
`}
/>

<h2>Tabel met footer</h2>
<h3 id="example-footer">Tabel met footer</h3>
<p>
Om de gebruiker te informeren over de inhoud van de tabel, is het aan te raden om een
titel toe te voegen met daarin de omschrijving van de tabel. Voeg direct binnen de
<code>table</code> een <code>caption</code> toe om de titel toe te voegen.
</p>
<p>Visueel voorbeeld:</p>
<h4>Visueel voorbeeld:</h4>
<div class="horizontal-scroll">
<table>
<caption> Tabelvoorbeeld met footer: </caption>
<caption>Tabelvoorbeeld met footer:</caption>
<thead>
<tr>
<th scope="col">Table header heading 1</th>
<th scope="col">Table header heading 2</th>
<th scope="col">Table header heading 3</th>
<th scope="col">Kolom 1</th>
<th scope="col">Kolom 2</th>
<th scope="col">Kolom 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
</tbody>
<tfoot>
Expand All @@ -170,29 +177,29 @@
code={`
<div class="horizontal-scroll">
<table>
<caption>Table with titlebar and title example:</caption>
<caption>Tabelvoorbeeld met footer:</caption>
<thead>
<tr>
<th scope="col">Table header heading 1</th>
<th scope="col">Table header heading 2</th>
<th scope="col">Table header heading 3</th>
<th scope="col">Kolom 1</th>
<th scope="col">Kolom 2</th>
<th scope="col">Kolom 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor set</td>
<td>Dolor sit amet</td>
</tr>
</tbody>
<tfoot>
Expand All @@ -209,6 +216,84 @@
</tfoot>
</table>
</div>
`}
/>

<h3 id="example-row-headers">Tabel met rij-headers</h3>
<h4>Visueel voorbeeld</h4>
<div class="horizontal-scroll">
<table>
<caption>Basisvoorbeeld tabel met rij-headers:</caption>
<thead>
<tr>
<th scope="col">Kolom 1</th>
<th scope="col">Kolom 2</th>
<th scope="col">Kolom 3</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Rij 1</th>
<td>Lorem ipsum</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<th scope="row">Rij 2</th>
<td>Lorem ipsum</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<th scope="row">Rij 3</th>
<td>Lorem ipsum</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<th scope="row">Rij 4</th>
<td>Lorem ipsum</td>
<td>Dolor sit amet</td>
</tr>
</tbody>
</table>
</div>

<h4>HTML-voorbeeld:</h4>
<Code
language="html"
code={`
<div class="horizontal-scroll">
<table>
<caption>Basisvoorbeeld tabel:</caption>
<thead>
<tr>
<th scope="col">Kolom 1</th>
<th scope="col">Kolom 2</th>
<th scope="col">Kolom 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor sit amet</td>
</tr>
<tr>
<td>Lorem</td>
<td>Ipsum</td>
<td>Dolor sit amet</td>
</tr>
</tbody>
</table>
</div>
`}
/>
</section>
Expand Down
2 changes: 1 addition & 1 deletion themes/icore-open/components/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
--table-head-cell-font-size: 1rem;

/* Table body header */
--table-body-head-cell-border-width: 0;
--table-body-head-cell-border-width: 0 0 1px 0;
--table-body-head-cell-background-color: transparent;

/* Table cell */
Expand Down