Skip to content

Commit 04f51a2

Browse files
authored
Merge pull request #2647 from pie-framework/fix/PD-5091
fix(rubric): enhance table styles for better UI consistency PD-5091
2 parents d785eb8 + 015756c commit 04f51a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/rubric/src/main.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ const styles = (theme) => ({
130130
root: {
131131
color: color.text(),
132132
backgroundColor: color.background(),
133+
// apply styles to tables to match the rest of the UI
134+
'&:not(.MathJax) table': {
135+
borderCollapse: 'collapse',
136+
},
137+
'&:not(.MathJax) table td, &:not(.MathJax) table th': {
138+
padding: '8px 12px',
139+
textAlign: 'left',
140+
},
133141
// reset paragraph margins and line-height inside lists to override client styles
134142
'& ul p, & ol p': {
135143
marginBottom: 0,

0 commit comments

Comments
 (0)