Skip to content

Commit

Permalink
fix(client): fix table css
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Mar 14, 2021
1 parent 5a955ee commit b7daa03
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
32 changes: 32 additions & 0 deletions packages/client/assets/style/tags.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,35 @@ blockquote {
padding-left: 12px;
text-align: left;
}

table {
border-collapse: collapse;
border-spacing: 0;
}

thead {
border-bottom: 1px var(--color-base) solid;

& th {
font-weight: 500;
padding: 0 4px 12px 4px;

&:not(:first-child) {
padding-left: 12px;
}
}
}

tbody {
& tr:not(:last-child) {
border-bottom: 1px var(--color-base) solid;
}

& td {
padding: 12px 4px 0 4px;

&:not(:first-child) {
padding-left: 12px;
}
}
}
5 changes: 4 additions & 1 deletion packages/fusuma/src/server/dynamicRenderingServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ async function dynamicRenderingServer(outputDirPath, publicPath, spinner, isThum

const { issues } = await pa11y(url, {
browser,
ignore: [/* anchor in ToC*/ 'WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID'],
ignore: [
/* anchor in ToC*/ 'WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID',
/* table */ 'WCAG2AA.Principle1.Guideline1_3.1_3_1.H49.AlignAttr',
],
});

if (issues.length) {
Expand Down
5 changes: 5 additions & 0 deletions packages/playground/debug/slides/01-many-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

# 1

| Left | Center | Right |
| :----- | :----: | -----: |
| TD | TD | TD |
| TDTDTD | TD | TDTDTD |

---

# 2
Expand Down
6 changes: 0 additions & 6 deletions packages/playground/debug/slides/08-mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@
import { Hello } from '../components/Hello';

<Hello />

---

<Hello />
<Hello />
<Hello />

0 comments on commit b7daa03

Please sign in to comment.