Skip to content

fix(item-sliding): hide opposite side options - #17986

Merged
liamdebeasi merged 7 commits into
ionic-team:masterfrom
masimplo:fix-sliding-buttons-visibility
Apr 15, 2019
Merged

liamdebeasi merged 7 commits into
ionic-team:masterfrom
masimplo:fix-sliding-buttons-visibility

Conversation

@masimplo

@masimplo masimplo commented Apr 6, 2019 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

This resolves an issue where both ion-item-options are show when sliding an ion-item-sliding item.

Changes proposed in this pull request:

  • adds a css rule to hide the opposite item-options when sliding item is open
  • adds an item in basic tests to demonstrate the issue and fix

Ionic Version:

Fixes: #17822

Video demonstrating issue and fix:
video

@liamdebeasi liamdebeasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey there,

Thanks for the PR -- this is looking great!

One small thing I'm noticing is if you drag an item-sliding all the way over to one side, you can see the last bit of one of the buttons (if there are multiple):

Screen Shot 2019-04-11 at 11 51 51 AM

If you change the 90% in item-sliding/item-sliding.scss:36 and item-sliding/item-sliding.scss:54 to 100% that should fix the issue.

@masimplo

Copy link
Copy Markdown
Contributor Author

Hi,
thanks for looking into this. You are correct, it was a bit tricky to reproduce as it does not happen in the emulator but on desktop. Nice catch!
Just pushed the proposed fix, which works like a charm.

@liamdebeasi liamdebeasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job! 🎉

@liamdebeasi

Copy link
Copy Markdown
Contributor

Hey there! Per @brandyscarney's comment #17822 (comment) I've updated the CSS a little bit to fix the issue. Looks like the visibility: hidden got removed during our v3->v4 transfer, so I added it back.

@brandyscarney
brandyscarney self-requested a review April 11, 2019 20:16
@liamdebeasi
liamdebeasi merged commit f13722c into ionic-team:master Apr 15, 2019
@liamdebeasi

Copy link
Copy Markdown
Contributor

Merged. Thank you! 🎉

@masimplo
masimplo deleted the fix-sliding-buttons-visibility branch April 16, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants