google / google/material-design-lite

Why are mdl-data-table td right aligned by default?

Open
#5,020 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
HTML
Stars
32.2k
Forks
4.9k
PR merge metrics
No merged PRs in 30d

Description

Hi,

Are tables expected to hold numeric data generally? I saw that the MD guidelines recommend right align for numeric but left align for text. With this library by default it behaves for numeric data, one has to explicitly apply class mdl-data-table__cell--non-numeric for text, so I'm wondering why the default is not the other way around. In my case most of my tables hold text and I'm having to litter the code with the explicit classing. I wonder if this is not most peoples use case too? Thanks in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.