Skip to content

Commit

Permalink
Merge branch 'master' into chore/update-change-case-january-2020
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod authored Jan 20, 2020
2 parents a928bab + 8810405 commit baf15cc
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
1 change: 1 addition & 0 deletions packages/components/Staticfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
root: demo
force_https: true
15 changes: 6 additions & 9 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -6381,7 +6381,6 @@ $text-02: if(
- [carbon--theme [mixin]](#carbon--theme-mixin)
- [content-switcher [mixin]](#content-switcher-mixin)
- [data-table-core [mixin]](#data-table-core-mixin)
- [date-picker [mixin]](#date-picker-mixin)
- [dropdown [mixin]](#dropdown-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [form [mixin]](#form-mixin)
Expand Down Expand Up @@ -16164,9 +16163,9 @@ Date picker styles
}
}

.#{$prefix}--date-picker__days .nextMonthDay,
.#{$prefix}--date-picker__days .prevMonthDay {
color: $text-02;
.#{$prefix}--date-picker__day.nextMonthDay,
.#{$prefix}--date-picker__day.prevMonthDay {
color: $text-05;
}

.#{$prefix}--date-picker__day.today,
Expand Down Expand Up @@ -16200,11 +16199,10 @@ Date picker styles
}
}

.#{$prefix}--date-picker__day.disabled,
.flatpickr-day.disabled {
.#{$prefix}--date-picker__day.flatpickr-day.flatpickr-disabled {
cursor: not-allowed;
opacity: 0.5;
color: $ui-05;
color: $disabled-02;

&:hover {
background: transparent;
Expand Down Expand Up @@ -16358,9 +16356,8 @@ Date picker styles
- [carbon--spacing-03 [variable]](#carbon--spacing-03-variable)
- [interactive-01 [variable]](#interactive-01-variable)
- [hover-ui [variable]](#hover-ui-variable)
- [text-02 [variable]](#text-02-variable)
- [ui-05 [variable]](#ui-05-variable)
- [text-04 [variable]](#text-04-variable)
- [ui-05 [variable]](#ui-05-variable)

## dropdown

Expand Down
11 changes: 5 additions & 6 deletions packages/components/src/components/date-picker/_date-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@
}
}

.#{$prefix}--date-picker__days .nextMonthDay,
.#{$prefix}--date-picker__days .prevMonthDay {
color: $text-02;
.#{$prefix}--date-picker__day.nextMonthDay,
.#{$prefix}--date-picker__day.prevMonthDay {
color: $text-05;
}

.#{$prefix}--date-picker__day.today,
Expand Down Expand Up @@ -352,11 +352,10 @@
}
}

.#{$prefix}--date-picker__day.disabled,
.flatpickr-day.disabled {
.#{$prefix}--date-picker__day.flatpickr-day.flatpickr-disabled {
cursor: not-allowed;
opacity: 0.5;
color: $ui-05;
color: $disabled-02;

&:hover {
background: transparent;
Expand Down
1 change: 1 addition & 0 deletions packages/react/Staticfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
root: storybook-static
force_https: true
16 changes: 12 additions & 4 deletions packages/react/src/components/DataTable/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const TableHeader = React.forwardRef(function TableHeader(
{
className: headerClassName,
children,
colSpan,
isSortable,
isSortHeader,
onClick,
Expand All @@ -63,7 +64,7 @@ const TableHeader = React.forwardRef(function TableHeader(
) {
if (!isSortable) {
return (
<th {...rest} className={headerClassName} scope={scope}>
<th {...rest} className={headerClassName} scope={scope} colSpan={colSpan}>
<span className={`${prefix}--table-header-label`}>{children}</span>
</th>
);
Expand All @@ -80,10 +81,11 @@ const TableHeader = React.forwardRef(function TableHeader(

return (
<th
scope={scope}
className={headerClassName}
aria-sort={ariaSort}
ref={ref}>
className={headerClassName}
colSpan={colSpan}
ref={ref}
scope={scope}>
<button className={className} onClick={onClick} {...rest}>
<span className={`${prefix}--table-header-label`}>{children}</span>
<Arrow
Expand Down Expand Up @@ -120,6 +122,12 @@ TableHeader.propTypes = {
*/
children: PropTypes.node,

/**
* Specify `colSpan` as a non-negative integer value to indicate how
* many columns the TableHeader cell extends in a table
*/
colSpan: PropTypes.number,

/**
* Specify whether this header is one through which a user can sort the table
*/
Expand Down

0 comments on commit baf15cc

Please sign in to comment.