Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(item-reorder): add side support #11642

Merged
merged 14 commits into from
Jun 15, 2017
Merged

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
transition: transform 140ms ease-in;

pointer-events: all;
touch-action: manipulation;
}

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

@@ -142,6 +142,7 @@ export class ReorderIndexes {
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