Skip to content

Commit

Permalink
The Fab ripple is what gives it a focused state; instead of disabling…
Browse files Browse the repository at this point in the history
… it entirely, just disable the animation
  • Loading branch information
cbeer committed Dec 8, 2023
1 parent 30776dd commit 3db2052
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/WorkspaceAddButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ export class WorkspaceAddButton extends Component {
size="medium"
color="primary"
id="addBtn"
disableRipple
aria-label={
isWorkspaceAddVisible
? t('closeAddResourceMenu')
: ((useExtendedFab && t('startHere')) || t('addResource'))
}
sx={{
'&:focus': {
backgroundColor: 'primary.dark',
},
margin: 1,
}}
variant={useExtendedFab ? 'extended' : 'circular'}
Expand Down
7 changes: 7 additions & 0 deletions src/config/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,13 @@ export default {
}
]
},
MuiFab: {
styleOverrides: {
root: {
transition: 'none',
}
},
},
MuiLink: {
defaultProps: {
underline: 'always'
Expand Down

0 comments on commit 3db2052

Please sign in to comment.