Fixes the disabled state for the Switch component#1841
Conversation
|
WalkthroughThe pull request updates the styling and behavior of the switch component in the web application. Changes include modifications to hover states, particularly for disabled elements, with updated background and text colors. Additionally, the tertiary/small variation now includes an extra class for disabled states, and the label element receives cursor behavior classes to better reflect its interactivity when disabled. There are no changes to the exported or public declarations. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant S as SwitchComponent
participant C as CSS Engine
U->>S: Hover over switch
S->>C: Evaluate state
alt Disabled State
C-->>S: Apply classes: hover:disabled:bg-charcoal-700, disabled:hover:text-rose-500, group-disabled:cursor-not-allowed
else Enabled State
C-->>S: Apply default hover and text classes (text-text-dimmed)
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Fixes the disabled state for the Switch component.
Summary by CodeRabbit