Skip to content

Ionic 2 Badges space issue (RTL) #10077

@theunreal

Description

@theunreal

Ionic version: (check one with "x")
[ ] 1.x
[ x] 2.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:
Wrong padding/space when using ion-badges in RTL layout Ionic 2 apps:

image

Expected behavior:
Correct the padding/spacing in RTL layouts, to work as excepted:
image

Steps to reproduce:
Using in RTL Ionic 2 apps

Related code:

<ion-item style="direction:rtl">
  <ion-icon name="checkmark" item-left></ion-icon>
  TOTAL
  <ion-badge item-right>1</ion-badge>
</ion-item>

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

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.2
Xcode version: Not installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions