diff --git a/.storybook/styles/components/_table.scss b/.storybook/styles/components/_table.scss
index 0644c9b0..368b5eda 100644
--- a/.storybook/styles/components/_table.scss
+++ b/.storybook/styles/components/_table.scss
@@ -85,3 +85,9 @@ th{
content:"▲";
}
}
+
+.custom-caption {
+ font-weight: bold;
+ font-size: 0.8rem;
+ color: $blue-dark;
+}
\ No newline at end of file
diff --git a/.storybook/styles/settings/variables/_colors.scss b/.storybook/styles/settings/variables/_colors.scss
index 9f078609..ab4115dd 100755
--- a/.storybook/styles/settings/variables/_colors.scss
+++ b/.storybook/styles/settings/variables/_colors.scss
@@ -6,6 +6,7 @@
//BLUE
$blue-light: #BEE4FF;
$blue-base: #6BC2FF;
+ $blue-dark: #006AB5;
//GREEN
$green-dark: #56C852;
diff --git a/migration-guides/v7.0.0.md b/migration-guides/v7.0.0.md
index 3a5e1620..cb322e9c 100644
--- a/migration-guides/v7.0.0.md
+++ b/migration-guides/v7.0.0.md
@@ -12,7 +12,7 @@ This version contains the following breaking changes:
8. `` and `` components now default to allowing the user to remove a selected file
9. The `previewComponent` for a file input no longer receives a `value` prop and `file` is a file object (with the url)
10. The tag on `` now uses the class `spinner` in place of an id and supports additional classes
-11. `` now expects both `options` and `value` as required props.
+11. `` now expects both `options` and `value` as required props
12. `` no longer accepts the `hideCloseButton` prop
13. `` component invokes `onDismiss` with redux-flash message object and allows message-specific overrides
14. `` and `` now accept a forwarded ref
@@ -244,7 +244,7 @@ Replace any styling rules that target `#spinner` with `.spinner`.
}
```
-## 11. `` now expects both `options` and `value` as required props.
+## 11. `` now expects both `options` and `value` as required props
Make sure that any instances of `` in your application are already sending these two props.
@@ -255,7 +255,7 @@ Make sure that any instances of `` in your application are already sen
/>
```
-## 12. `` no longer accepts the `hideCloseButton` prop.
+## 12. `` no longer accepts the `hideCloseButton` prop
Replace `hideCloseButton` with `preventClose`. If you still need the modal to close on escape and/or by clicking the overlay, you can manually set those props. By default, `shouldCloseOnEsc` and `shouldCloseOnOverlayClick` will be set to the opposite of `preventClose` (default `false`).
```jsx
diff --git a/src/tables/sortable-table.js b/src/tables/sortable-table.js
index 75c55c51..8ca2a687 100644
--- a/src/tables/sortable-table.js
+++ b/src/tables/sortable-table.js
@@ -47,6 +47,7 @@ const propTypes = {
onChange: PropTypes.func,
rowComponent: Types.component,
headerComponent: Types.component,
+ caption: PropTypes.node,
}
const defaultProps = {
className: '',
@@ -57,6 +58,7 @@ const defaultProps = {
disableSort: false,
controlled: false,
onChange: noop,
+ caption: null,
}
const defaultControls = {
initialSortPath: '',
@@ -92,6 +94,7 @@ function SortableTable({
onChange,
rowComponent,
headerComponent,
+ caption,
...rest
}) {
const columns = getColumnData(children, disableSort)
@@ -148,28 +151,34 @@ function SortableTable({
}
return (
-