Skip to content

Commit

Permalink
fix(ui-checkbox,ui-spinner): remove hover highlight from disabled che…
Browse files Browse the repository at this point in the history
…ckbox

Closes: INSTUI-3894
  • Loading branch information
HerrTopi committed Oct 17, 2023
1 parent 065d3e7 commit 3fe755f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/ui-checkbox/src/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
}

handleMouseOver = () => {
this.setState({
hovered: true
})
!this.props.disabled &&
this.setState({
hovered: true
})
}

handleMouseOut = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import Spinner from '../index'
describe('<Spinner />', () => {
describe('with the delay prop', () => {
it('should delay rendering', async () => {
const { container } = render(<Spinner delay={300} />)
const { container } = render(
<Spinner renderTitle="Loading" delay={300} />
)

const spinnerElements = container.querySelectorAll('[data-cid="Spinner"]')

Expand Down

0 comments on commit 3fe755f

Please sign in to comment.