Skip to content

Conversation

@iamThiagoo
Copy link
Contributor

πŸ”— Linked issue

N/A

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Hi team,

Currently, clicking on the description text of the Checkbox and Switch components does not toggle their state, which is expected behavior for accessible form controls. This occurs because the description is rendered outside the element, preventing the click from being associated with the input.

This PR wraps the description inside the Label component, ensuring that clicking anywhere within the label area (including the description) correctly toggles the input for both Checkbox and Switch.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant