-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Table styles and props with updated examples and tests. #231
Conversation
@@ -1,371 +1,299 @@ | |||
@Table-row-height: @size-standard-height - 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these less variables need to be cleaned up, there are some unused vars defined here.
Might want to do an |
* | ||
* Returns a 2 dimensional array of cell elements of the given component type. The map function can modify value of a cell. | ||
*/ | ||
const mapToGrid = function mapToGrid(trList, cellType='td', mapFn=_.property('element')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this is a const
and not just a regular function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops looks like a fluke, i'll fix it
@@ -34,140 +34,140 @@ export default React.createClass({ | |||
<Tbody> | |||
<Tr> | |||
<Td rowSpan={14} hasBorderRight>RS</Td> | |||
<Td hasCheckbox><Checkbox/></Td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@@ -1,371 +1,299 @@ | |||
@Table-row-height: @size-standard-height - 2; | |||
@Table-row-heightLarge: @Table-row-height + @size-standard; | |||
@Table-cell-padding: @size-S; | |||
@Table-cell-border-color: #e3e3e3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be @color-gray
PR Checklist
common
at minimum)semver-
labelsBreaking Changes:
Table
hasExtraWhiteSpace: bool
and replaced it withdensity: oneOf(['compressed', 'extended'])
defaulting toextended
.hasNoBorder
tohasBorder
with an opposite boolean valueTable.Thead
lucid-Table-thead
tolucid-Table-Thead
Table.Tbody
lucid-Table-tbody
tolucid-Table-Tbody
Table.Tr
lucid-Table-row
tolucid-Table-Tr
isHeader
hasDetails
toisActionable
Table.Th
lucid-Table-cell
tolucid-Table-Th
hasCheckbox
hasButton
hasIcon
Table.Td
lucid-Table-cell
tolucid-Table-Td
isAfterRowSpan
hasCheckbox
hasButton
hasIcon
ScrollTable
isNowrap
tohasWordWrap
DataTable
hasExtraWhiteSpace
hasDetails
toisActionable