Radio / Switch label wrap

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
daniele.pecora
Posts: 17
Joined: 05 Jan 2017, 12:45

04 Dec 2019, 12:07

The label content on the ui widgets radio and switch floats around the input element
rather than wrapping as box like the label of the ui widget checkbox.

This is how they differ in wrapping the label
Image
If you can't see the image go to https://ibb.co/9HwQWgh

This is how we would like to see it
Image
If you can't see the image go to https://ibb.co/XzvVfM4

This is how we fixed our scss file.

Code: Select all

/**
 * Fix radio button label and switch label
 * wrapping below the ui widget.
 * Makes appear the radio button label the same
 * as the ui-checkbox-label
 */
 body {
  .md-radiogroup .radio, .md-switch {
    white-space: nowrap;
  }
  .ui-radiobutton-label, .md-switch label {
    display: inline-block;
    white-space: normal;
    vertical-align: top;
  }
 }

We would love to see this coming in future update.

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

16 Dec 2019, 14:18

Hi,
Thank you for your feedback and suggestion. We will check and fix for next release.

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest