Skip to content

Ion Select radio options are hidden in RTL mode #16295

Closed

Description

@Newbie012

Bug Report

Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.

Ionic:

   ionic (Ionic CLI)             : 4.3.1 (C:\Users\Eliya\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.15
   @angular-devkit/build-angular : 0.8.7
   @angular-devkit/schematics    : 0.8.7
   @angular/cli                  : 6.2.7
   @ionic/angular-toolkit        : 1.1.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : browser 5.0.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.1, (and 5 other plugins)

System:

   Android SDK Tools : 26.1.1 (E:\android-sdk)
   NodeJS            : v10.11.0 (C:\Program Files\nodejs\node.exe)
   npm               : 6.4.1
   OS                : Windows 10

Describe the Bug
in RTL, ion-select's radios won't be visible, unlike in LTR mode.

Steps to Reproduce
Steps to reproduce the behavior:

  1. set <html dir="rtl">
  2. create an ion-select with options
  3. See occurrence

Related Code

  <ion-item>
    <ion-label>Gender</ion-label>
    <ion-select placeholder="Select One">
      <ion-select-option value="f">Female</ion-select-option>
      <ion-select-option value="m">Male</ion-select-option>
    </ion-select>
  </ion-item>

Expected Behavior
Should present the radios in RTL mode too.

Additional Context

RTL:
image

LTR:
image

I had to add the following code to make it work:

[dir="rtl"] .alert-radio-label.sc-ion-alert-md {
  padding: 13px 52px 13px 26px
}

[dir="rtl"] .alert-radio-icon.sc-ion-alert-md {
  right: 26px;
  left: unset;
}

Activity

  1. mohamedsharaf commented on Jan 10, 2019

    @mohamedsharaf
    
    [dir="rtl"] input[dir="auto"] {
          direction: rtl !important;
        }
    
        [dir="rtl"] .select-md {
          padding-right: 0px !important;
        }
    
    
        
        [dir="rtl"] .alert-radio-icon , [dir="rtl"] .alert-checkbox-icon{
          right: 16px!important;
          left: 0px!important;
        } 
    
  2. added a commit that references this issue on Jan 16, 2019
    ceae5d2
  3. ionitron-bot commented on Feb 15, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  4. locked and limited conversation to collaborators on Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: core

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions