Skip to content

Commit

Permalink
fix(checkbox): remove cursor: pointer for checkbox skeleton (#11478)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
joshblack and kodiakhq[bot] authored May 26, 2022
1 parent c93122f commit 699b700
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/react/src/components/Checkbox/Checkbox.Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ const CheckboxSkeleton = ({ className, ...rest }) => {
className={cx(
`${prefix}--form-item`,
`${prefix}--checkbox-wrapper`,
`${prefix}--checkbox-label`,
`${prefix}--checkbox-skeleton`,
className
)}
{...rest}>
<span className={`${prefix}--checkbox-label-text ${prefix}--skeleton`} />
<div className={`${prefix}--checkbox-label`}>
<span
className={`${prefix}--checkbox-label-text ${prefix}--skeleton`}
/>
</div>
</div>
);
};
Expand Down
3 changes: 3 additions & 0 deletions packages/styles/scss/components/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@
//-----------------------------------------------
// Skeleton
//-----------------------------------------------
.#{$prefix}--checkbox-skeleton .#{$prefix}--checkbox-label {
cursor: default;
}

.#{$prefix}--checkbox-label-text.#{$prefix}--skeleton {
@include skeleton;
Expand Down

0 comments on commit 699b700

Please sign in to comment.