Skip to content

ion-select with no-padding attribute in RTL mode not working #11914

Closed

Description

@snirs90

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
ion-select with no-padding attribute in RTL mode are not reset the padding.
it is overrided by the css class:

[dir="rtl"] .select-md {
    padding-right: 16px;
    padding-left: 8px;
}

Expected behavior:
no-padding should override with reset the padding properties.

Steps to reproduce:

  1. make the app RTL mode.
  2. add ion-select
  3. put no-padding attribute
  4. The padding is not getting reset and get overrides by [dir="rtl"] .select-md css class.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

global packages:

@ionic/cli-utils : 1.3.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.3.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.3.0
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.3.0

System:

Node       : v7.9.0
OS         : Linux 3.13
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

Activity

  1. snirs90 commented on Jun 4, 2017

    @snirs90
    ContributorAuthor

    Also I've saw that no matter on which ion-element (at least few ion elements I've needed) I put no-padding attribute - it got override by some html[dir="rtl"] ... css class.
    for example it happens for ion-item also.

  2. AmitMY commented on Jun 4, 2017

    @AmitMY
    Contributor

    That is intended* behavior.

    Reason: Step 1 does not effect anything for ltr users, step 2 changes the entire css bundle.

    There are many more RTL fixes coming soonish.

    *intended - we don't want it, but the first rtl fixes were intended to override the ltr design

  3. brandyscarney commented on Jun 6, 2017

    @brandyscarney
    Member

    Fixed by #11635, thanks @AmitMY 😄

  4. ionitron-bot commented on Sep 2, 2018

    @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.

  5. locked and limited conversation to collaborators on Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

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