Skip to content

Conversation

AmitMY
Copy link
Contributor

@AmitMY AmitMY commented May 12, 2017

Short description of what this resolves:

A user needs this feature

Changes proposed in this pull request:

  • add [side] to reorder
  • change structure of ion-item

Of course, this is RTL supported.

Ionic Version: 3.x

Fixes: #11637

'[class.reorder-side-left]': 'side === "left"',
'[class.reorder-side-right]': 'side === "right"',
'[class.reorder-side-start]': 'side === "start"',
'[class.reorder-side-end]': 'side === "end"'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manucorporat what would be the correct way here to add the classes? Should I can just use [ngClass] with a string.

AmitMY added 2 commits June 8, 2017 22:40
# Conflicts:
#	src/components/item/item-reorder.scss
#	src/components/item/test/reorder/pages/root-page/root-page.html
@brandyscarney brandyscarney removed the rtl label Jun 9, 2017
}

.reorder-side-start ion-reorder {
@include transform(translate3d(-160%, 0, 0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other to prevent DRY, could we use a scss variable like $reorder-initial-transform ?

host: {
'[class.reorder-enabled]': '_enableReorder',
'[class.reorder-visible]': '_visibleReorder',
'[class.reorder-side-start]': 'side === "start"'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change string comparison to boolean

@manucorporat manucorporat merged commit 63f728f into ionic-team:master Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants