Skip to content

Commit

Permalink
Align tables to start instead of left
Browse files Browse the repository at this point in the history
For better RTL support.
  • Loading branch information
adamwathan committed Mar 27, 2024
1 parent 8d686dc commit f520c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ module.exports = {
table: {
width: '100%',
tableLayout: 'auto',
textAlign: 'left',
textAlign: 'start',
marginTop: em(32, 16),
marginBottom: em(32, 16),
},
Expand Down

1 comment on commit f520c53

@jamesharding
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems to have broken the table header alignment for some reason. It can be seen in the example here: https://tailwindcss-typography.vercel.app/
Changing the value back to left in the inspector tool changes it back to being properly left-aligned. Not sure if this is a browser rendering bug, but it is the same behaviour in the latest Firefox and Chrome.

Please sign in to comment.