Skip to content

fix: improve checkbox label text wrapping with wrapper class#12

Open
ismne21 wants to merge 1 commit intothm-projects:stagingfrom
MohSay890:Wrap-texts-on-toggle-switches
Open

fix: improve checkbox label text wrapping with wrapper class#12
ismne21 wants to merge 1 commit intothm-projects:stagingfrom
MohSay890:Wrap-texts-on-toggle-switches

Conversation

@ismne21
Copy link

@ismne21 ismne21 commented Mar 14, 2026

  • Replaced the previous ::ng-deep CSS approach for text wrapping on Angular Material checkbox labels with a dedicated wrapper class.

  • Updated the HTML templates to wrap checkbox label text in a for better targeting and maintainability.

  • Added specific SCSS for .checkbox-label-wrap to ensure long or multiline labels are displayed correctly and responsively.

  • Improves readability, accessibility, and UI consistency for toggle switches and checkboxes with extended text.

  • Cleans up legacy deep styling for a more robust and future-proof solution.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant