This repository was archived by the owner on Mar 27, 2023. It is now read-only.
Long checkbox labels #6575
Unanswered
grahamford
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi Graham, I think this can be done with application of css directly to the label itself. Apply the ( <cds-checkbox>
<label style="inline-size: 100px; white-space: pre-wrap;">A long label that will wrap</label>
<input type="checkbox" />
</cds-checkbox> Here is a fork of your demo. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to force the label for a checkbox to wrap so that it fits within its containing box?
I can't seem to override this style
I've created a small demo of the problem here https://stackblitz.com/edit/long-checkbox-label
Beta Was this translation helpful? Give feedback.
All reactions