Skip to content

Commit e19b192

Browse files
committed
Remove the ripple effect from these buttons so the test consistently passes.
1 parent 8765195 commit e19b192

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

web-ui/src/components/settings/types/boolean.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const SettingsBoolean = ({ name, description, value, handleChange }) => {
2626
</label>
2727
{description && <p>{description}</p>}
2828
<Switch
29+
disableRipple
2930
id={labelId}
3031
className="settings-control"
3132
type="checkbox"

web-ui/src/pages/SettingsPage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ const SettingsPage = () => {
214214
selectHasAdministerSettingsPermission(state) &&
215215
<div className="buttons">
216216
<Button
217+
disableRipple
217218
color="primary"
218219
onClick={save}>
219220
Save

web-ui/src/pages/__snapshots__/SettingsPage.test.jsx.snap

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ exports[`SettingsPage > renders correctly 1`] = `
4848
<span
4949
class="MuiSwitch-thumb css-jsexje-MuiSwitch-thumb"
5050
/>
51-
<span
52-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
53-
/>
5451
</span>
5552
<span
5653
class="MuiSwitch-track css-1yjjitx-MuiSwitch-track"
@@ -125,9 +122,6 @@ exports[`SettingsPage > renders correctly 1`] = `
125122
type="button"
126123
>
127124
Save
128-
<span
129-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
130-
/>
131125
</button>
132126
</div>
133127
</div>

0 commit comments

Comments
 (0)