feat: 218 v5 table component table cell part [05]#313
Conversation
…5-table-component-part-table-body
…218-v5-table-component-part-tablehead-and-tableheadercell
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
…e interface name
…5-table-component-part-table-body
…e interface name
…218-v5-table-component-part-tablehead-and-tableheadercell
…5-table-component-part-table-body
…218-v5-table-component-part-tablehead-and-tableheadercell
…218-v5-table-component-part-tablehead-and-tableheadercell
…d change interfaces name
…218-v5-table-component-part-tablehead-and-tableheadercell
…dercell' into feat-218-v5-table-component-part-table-row
…dercell' into feat-218-v5-table-component-part-table-row
…18-v5-table-component-parts-table-cell
kurtdoherty
left a comment
There was a problem hiding this comment.
Thanks @rpt-rfoxy. It feels like you're still stepping beyond the design specification too often. I shouldn't see components be capable of things that design haven't specified. If you have opinions or ideas you'd like to share, by all means raise them on the Figma design spec for the component. And if you do add things into the code that is not specified in the design spec, please highlight it on the PR via a comment.
| alignment?: 'left' | 'center' | 'right' | ||
| width?: string | ||
| minWidth?: string | ||
| maxWidth?: string |
There was a problem hiding this comment.
question: where does the design specification show the need for flexDirection and isFlexWrap?
There was a problem hiding this comment.
hi @kurtdoherty for this question we already discuss here here also hereand its needit since we have limited style properties for the i add new wrapper
and if the contentwrapper are necessery we can remove it and also remove flexDirection and isFlexWrap.
There was a problem hiding this comment.
I'm confused. The two comments you have referred to don't seem to have anything to do with this component's need for flexDirection and isFlexWrap...
There was a problem hiding this comment.
hi @kurtdoherty i already cahnge the code, and keep the props as DOC from here
| minWidth?: string | ||
| maxWidth?: string | ||
| flexDirection?: 'column' | 'row' | ||
| isFlexWrap?: boolean |
There was a problem hiding this comment.
issue: I don't think the special CSS style props defined for ElTableCell should be exposed here. For TableCell, the only way consumers should be able to specify the min/max/fixed width of the cell is via the explicit props for those values, not style.
There was a problem hiding this comment.
hi @kurtdoherty thanks for the feedback,
Notes: the minWidth and maxWidth also alignment property is sugested from this discussion

and i just following the past discussion and for flexDirection and isFlexWrap we can remove it since its part of tablecellcontent
There was a problem hiding this comment.
I'm confused here too. My comments above are focused on your use of the TableCellCSSProps type for this React component's style prop. This TableCellCSSProps type includes CSS variable property definitions; these should not be part of TableCell's prop interface, instead they should only be part of ElTableCell's prop interface.
There was a problem hiding this comment.
aah i see, im sorry my bad, i'll remove the style tyle,
i thougt since the have child so i thougt it will be good if style props will ocused only for ElTableCellContent.
now its clear, i'll remove it
question: should we remove ElTableCellContent or just keep it?
| import { styled } from '@linaria/react' | ||
| import { CSSProperties } from 'react' | ||
|
|
||
| export interface TableCellCSSProps extends CSSProperties { |
There was a problem hiding this comment.
issue: please remove the export of this interface and rename the interface as ElTableCellCSSProperties
…dercell' into feat-218-v5-table-component-part-table-row
…18-v5-table-component-parts-table-cell
…nd-tableheadercell
…dercell' into feat-218-v5-table-component-part-table-row
…18-v5-table-component-parts-table-cell
kurtdoherty
left a comment
There was a problem hiding this comment.
Thanks @rpt-rfoxy. I still don't understand the need for ElTableCellContent and I don't think you've provided a clear demonstration for why it's necessary, but I'm pretty fatigued from the number rounds all these table-related PRs have taken so I think the best path forward is to just get this merged in and move on.

Pull request checklist
Detail as per issue below (required):

as perdiscusstion here Discussion
schreenshoot