From 2a210b6c231a25ea1aef6d33416b7870d4f8f0f0 Mon Sep 17 00:00:00 2001 From: John Betancur Date: Sun, 30 Jun 2019 23:52:36 -0400 Subject: [PATCH] expander when disabled should not have a pointer --- src/DataTable/ExpanderButton.js | 2 +- .../__tests__/__snapshots__/DataTable.test.js.snap | 6 +++--- .../__tests__/__snapshots__/ExpanderButton.test.js.snap | 4 ++-- .../__tests__/__snapshots__/TableCellExpander.test.js.snap | 2 +- src/DataTable/__tests__/__snapshots__/TableRow.test.js.snap | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/DataTable/ExpanderButton.js b/src/DataTable/ExpanderButton.js index df3e2959..f98482f8 100644 --- a/src/DataTable/ExpanderButton.js +++ b/src/DataTable/ExpanderButton.js @@ -16,7 +16,7 @@ const ButtonStyle = styled.button` color: ${props => props.theme.expander.expanderColorDisabled}; } - &:hover { + &:hover:enabled { cursor: pointer; } `; diff --git a/src/DataTable/__tests__/__snapshots__/DataTable.test.js.snap b/src/DataTable/__tests__/__snapshots__/DataTable.test.js.snap index 8146658b..3b876e76 100644 --- a/src/DataTable/__tests__/__snapshots__/DataTable.test.js.snap +++ b/src/DataTable/__tests__/__snapshots__/DataTable.test.js.snap @@ -1751,7 +1751,7 @@ exports[`expandableRows should render correctly when expandableRows is true 1`] color: rgba(0,0,0,.12); } -.c16:hover { +.c16:hover:enabled { cursor: pointer; } @@ -2219,7 +2219,7 @@ exports[`expandableRows should render correctly when expandableRows is true and color: rgba(0,0,0,.12); } -.c16:hover { +.c16:hover:enabled { cursor: pointer; } @@ -6435,7 +6435,7 @@ exports[`sorting should render correctly when a column is sorted 1`] = ` color: rgba(0,0,0,.12); } -.c16:hover { +.c16:hover:enabled { cursor: pointer; } diff --git a/src/DataTable/__tests__/__snapshots__/ExpanderButton.test.js.snap b/src/DataTable/__tests__/__snapshots__/ExpanderButton.test.js.snap index 03f67ed5..5283ccdb 100644 --- a/src/DataTable/__tests__/__snapshots__/ExpanderButton.test.js.snap +++ b/src/DataTable/__tests__/__snapshots__/ExpanderButton.test.js.snap @@ -15,7 +15,7 @@ exports[` should render correctly 1`] = ` color: rgba(0,0,0,.12); } -.c0:hover { +.c0:hover:enabled { cursor: pointer; } @@ -56,7 +56,7 @@ exports[` should render correctly 1`] = ` color: rgba(0,0,0,.12); } -.c0:hover { +.c0:hover:enabled { cursor: pointer; } diff --git a/src/DataTable/__tests__/__snapshots__/TableCellExpander.test.js.snap b/src/DataTable/__tests__/__snapshots__/TableCellExpander.test.js.snap index 21e58185..939b7371 100644 --- a/src/DataTable/__tests__/__snapshots__/TableCellExpander.test.js.snap +++ b/src/DataTable/__tests__/__snapshots__/TableCellExpander.test.js.snap @@ -15,7 +15,7 @@ exports[`component should render correctly 1`] = ` color: rgba(0,0,0,.12); } -.c1:hover { +.c1:hover:enabled { cursor: pointer; } diff --git a/src/DataTable/__tests__/__snapshots__/TableRow.test.js.snap b/src/DataTable/__tests__/__snapshots__/TableRow.test.js.snap index 4255d503..730cb994 100644 --- a/src/DataTable/__tests__/__snapshots__/TableRow.test.js.snap +++ b/src/DataTable/__tests__/__snapshots__/TableRow.test.js.snap @@ -645,7 +645,7 @@ exports[`with columns should render correctly if expandableRows 1`] = ` color: rgba(0,0,0,.12); } -.c2:hover { +.c2:hover:enabled { cursor: pointer; }