From 4b4fdbcc843f66989c2341b8f4dffc2e218a9fe8 Mon Sep 17 00:00:00 2001 From: vicbergquist Date: Tue, 13 Aug 2019 14:30:36 +0200 Subject: [PATCH 1/3] [components] fix unused snackbar kind --- packages/@sanity/desk-tool/src/pane/DocumentsListPane.js | 2 +- packages/@sanity/desk-tool/src/pane/Editor/Editor.js | 2 +- packages/@sanity/desk-tool/src/pane/History.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@sanity/desk-tool/src/pane/DocumentsListPane.js b/packages/@sanity/desk-tool/src/pane/DocumentsListPane.js index b4fd74a36ad..697e233a31d 100644 --- a/packages/@sanity/desk-tool/src/pane/DocumentsListPane.js +++ b/packages/@sanity/desk-tool/src/pane/DocumentsListPane.js @@ -283,7 +283,7 @@ export default withRouterHOC( if (error) { return ( ))} - {error && } + {error && } ) } From 73bdaa176de84224a112ce958f727ebfa4519107 Mon Sep 17 00:00:00 2001 From: vicbergquist Date: Tue, 13 Aug 2019 14:31:18 +0200 Subject: [PATCH 2/3] [components] fix snackbar item icon prop type --- packages/@sanity/components/src/snackbar/SnackbarItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/components/src/snackbar/SnackbarItem.js b/packages/@sanity/components/src/snackbar/SnackbarItem.js index 3f94b3469db..cbac148f3e3 100644 --- a/packages/@sanity/components/src/snackbar/SnackbarItem.js +++ b/packages/@sanity/components/src/snackbar/SnackbarItem.js @@ -13,7 +13,7 @@ export default class SnackbarItem extends React.Component { static propTypes = { action: PropTypes.shape({ title: PropTypes.string, - icon: PropTypes.func, + icon: PropTypes.node, callback: PropTypes.func }), autoDismissTimeout: PropTypes.number, From a46f9c349902968bf3a74ae8f87d06c2cf1e7004 Mon Sep 17 00:00:00 2001 From: vicbergquist Date: Tue, 13 Aug 2019 14:59:06 +0200 Subject: [PATCH 3/3] [components] fix scrollbar appearance --- .../@sanity/components/src/snackbar/styles/SnackbarItem.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/components/src/snackbar/styles/SnackbarItem.css b/packages/@sanity/components/src/snackbar/styles/SnackbarItem.css index 57c27b7e286..670c8f3de61 100644 --- a/packages/@sanity/components/src/snackbar/styles/SnackbarItem.css +++ b/packages/@sanity/components/src/snackbar/styles/SnackbarItem.css @@ -1,7 +1,7 @@ @import "part:@sanity/base/theme/variables-style"; .root { - position: absolute; + position: fixed; z-index: var(--zindex-modal); bottom: 0; right: 0;