Skip to content

Table cells should have a way to turn off text mode #2

Closed

Description

@bevacqua

In this snippet:

<span className="kuiTableCellContent__text">

The issue is that when we want to render full-width cells such as Node distribution in the following table:

screen shot 2017-10-23 at 11 41 15

We need to do something like .ourTable .kuiTableCellContent__text { width: 100% }. Is this reasonable, or should we have a prop to turn off the text mode, whereby we don't add the extra span highlighted here:

screen shot 2017-10-23 at 11 43 22

I'd rather not have consumers need to dig into the internal classes as much as possible (in the context of React components at least), since that's the value in React for the most part, abstracting the classes away

In conclusion, would it be possible to do something like:

{
  this.props.allowOverflow === true
    ? children
    : <span className='kuiTableCellContent__text'>{ children }</span>
}

Activity

  1. bevacqua commented on Oct 23, 2017

    @bevacqua
    ContributorAuthor
  2. bevacqua commented on Oct 23, 2017

    @bevacqua
    ContributorAuthor

    FWIW we can discuss the contribution process in the call tomorrow, but as far as I'm concerned the following would be a fair process:

    • Cloud stumbles upon an issue or something that doesn't work well for Cloud
    • Cloud files an issue and ask for feedback from @cjcenizal and @snide
    • We all come to a consensus as to what should be done and how
    • Cloud implements the solution in a PR
    • Everyone gets a chance to review and a review from @cjcenizal or @snide is mandatory unless otherwise agreed upon during the issue discussion
    • PR lands
  3. added a commit that references this issue on Aug 20, 2019
  4. added a commit that references this issue on Oct 24, 2019
  5. added a commit that references this issue on Dec 11, 2019
  6. added a commit that references this issue on Jun 12, 2020
  7. added a commit that references this issue on Aug 21, 2026
  8. added a commit that references this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions