Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(switch): update cursor style to not-allowed when disabled #943

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

mryunt02
Copy link
Contributor

This PR updates the cursor style of the Switch component to not-allowed when it is disabled, improving user experience by indicating that the component is not interactive in its disabled state.

Changes

  • Added the following CSS rule to the Switch component:
    :host([disabled]) .switch {
      opacity: 0.5;
      cursor: not-allowed; /* added this part */
    }

Issue Resolved

this PR resolves #942

@buseselvi buseselvi merged commit 9b9fa6c into Trendyol:next Oct 17, 2024
5 checks passed
Copy link

🎉 This PR is included in version 3.3.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mryunt02 mryunt02 deleted the feature/switch-cursor-update branch October 21, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: <Issue: Improve Disabled Switch Component Cursor Style>
4 participants