design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Right-Align Data-Table cells

Open jwilcurt-salesforce-com opened this issue 10 years ago • 4 comments

For numeric values in particular, our design calls for right-aligned text in specific columns.

Can this be added to the Data-Table, or if it already exists have the documentation updated to more clearly explain how to use it.

  • https://jira.exacttarget.com:8443/browse/CONBLD-4789

jwilcurt-salesforce-com avatar Aug 10 '16 15:08 jwilcurt-salesforce-com

Would allowing custom classNames along these lines help? https://github.com/tweettypography/design-system-react/tree/datatable-column-classnames

tweettypography avatar Aug 12 '16 17:08 tweettypography

Yeah, but you should still update the documentation to give an example of right aligning text with this method, and what the intended SLDS class to use is. (I assume slds-text-align--right)

jwilcurt-salesforce-com avatar Aug 12 '16 18:08 jwilcurt-salesforce-com

For sure.

Other options would be an actual React textAlign prop or adding the ability to pass a style prop. Actually, probably both className and style should be supported props no matter what we do for this.

tweettypography avatar Aug 12 '16 18:08 tweettypography

Adding features are the responsibility of the consuming product team. Please follow up if any B2C UXE or SLDS decisions need to be made.

interactivellama avatar Oct 20 '17 18:10 interactivellama