ConsenSysMesh / rimble-ui

React components that implement Rimble's Design System.
https://rimble.consensys.design/
MIT License
462 stars 67 forks source link

Strengthen Table component #406

Open MikeLockz opened 4 years ago

MikeLockz commented 4 years ago

Current Table implement is not flexible enough and does not work out-of-the-box. First step to using the Table is to rewrite the styles as a new styled-component with enough base styles to get it working correct.

For a basic table use-case, the Table component should not need any custom or extended styling to work well responsively.

How would we rewrite this component to no need custom styling to work out of the box?

Acceptance criteria:

example of customized table from Storefront :

const StyledTable = styled(RimbleTable)`
  & {
    display: block;
    width: 100%;
    overflow: auto;
    border-width: 0;
  }

  th,
  td {
    border: solid;
    border-width: 1px;
    border-color: inherit;
    padding: 0 1.5rem;
  }
`;

Relates to #420

E: 1D