Skip to content

Allow table row cell overflow - #26

Merged
bevacqua merged 4 commits into
masterfrom
allow-overflow
Oct 26, 2017
Merged

bevacqua merged 4 commits into
masterfrom
allow-overflow

Conversation

@bevacqua

Copy link
Copy Markdown
Contributor

Fixes #2

@snide

snide commented Oct 24, 2017

Copy link
Copy Markdown
Contributor

@cjcenizal is the overflow the only reason you had those spans in there? I know we'd talked about this stuff before, and I can't remember if they were required in all use cases.

Comment thread src/components/table/table_row_cell.js Outdated
children,
className,
wrapText,
allowOverflow,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add this to the propTypes definition? And can we add an example to the doc site?

@cjcenizal

Copy link
Copy Markdown
Contributor

@snide Yes I believe that's the only point of that span. Once @bevacqua has updated the doc site we can take a look at the example and make sure nothing breaks.

@bevacqua

Copy link
Copy Markdown
Contributor Author

@cjcenizal @snide this is up for review

@snide snide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno if I'm reading the code correctly. Left a comment.

Comment thread docs/src/views/table/table.js Outdated
if (column.isCheckbox) {
return (
<EuiTableRowCellCheckbox key={column.id}>
<EuiTableRowCellCheckbox key={column.id} allowOverflow={ true }>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the example you were looking to show? As I understand from the issue #2 you basically just wanted a prop to not include the text wrapper span sometimes in your table usage.

I guess it's fine using it on the checkbox (it doesn't have text content), but allowOverflow probably seems weirdly named here, since checkboxes aren't actually allowing overflow? In this case isn't it more containsText={false}?

Sorry, dunno if I'm reading the code / docs you have set up correctly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to textOnly?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bevacqua Yeah. That conveys the meaning better i think. Sounds good.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There we go!

@snide snide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Looks good. Added a ticket to better explain this stuff in the written docs at a later time. I can do it. Don't wanna slow you down.

#62

@bevacqua
bevacqua merged commit 3d4203e into master Oct 26, 2017
@bevacqua
bevacqua deleted the allow-overflow branch October 26, 2017 22:50
thompsongl pushed a commit to thompsongl/eui that referenced this pull request Sep 5, 2019
…downs

`EuiDualRange` thumb position on resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants