-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
wrapping of value of md-radio-button #2019
Comments
That because Using the following should allow words to wrap but you may need to add other styles to
|
We think that not wrapping is the most sensible default behavior; you should be able to override the css as @joejordanbrown mentioned. |
I dont understand why no-wrapping is default behaviour. If the text is long enough, it goes out of screen! Moreover, it is not the default behaviour in md-checkbox. |
Hi same here... I don't get why it should be... I didn't succeed in modifying it using css. |
You can alter the wrap behaviour using:
|
@aworton That didn't work. Tried many combinations. The only thing that even selected the label was '.mat-radio-button'. I did open a new issue #6671 . Using plunk - http://plnkr.co/edit/PS09vZVKMQxIMLd72mSS?p=preview |
I have the same issue with checkbox not wrapping. Tried modifying the css classes but nothing worked. What worked for me after inspirations from the replies to #6671. I believe could work for radio button too.
CSS:
|
I think you should use ::ng-deep https://angular.io/guide/component-styles#special-selectors
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
How to wrap md-radio-button value ? Is there an option available ? I tried some css tricks but it seems to be not working for md-radio-button
Bug, feature request, or proposal:
What is the expected behavior?
{{data}}
label {
word-wrap: break-word;
width: 200px;md-radio-button
}
What is the current behavior?
What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: