Skip to content

fix(button): rtl fix for md ripple effect - #11842

Merged
brandyscarney merged 9 commits into
ionic-team:masterfrom
sijav:rtl-fix-button-md-effect
Jun 7, 2017
Merged

brandyscarney merged 9 commits into
ionic-team:masterfrom
sijav:rtl-fix-button-md-effect

Conversation

@sijav

@sijav sijav commented May 29, 2017

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

This will fix ripple effect on material design which were showing displaced of touch click.

Changes proposed in this pull request:

  • remove the include position and instead use absolute values.

Ionic Version: 3.x

Fixes: #11211

Comment thread src/components/button/button.md.scss Outdated
@include position(0, null, null, 0);
// scss-lint:disable PropertySpelling
left: 0;
top: 0;

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.

First, know that this won't pass linting, as the properties are above an @include

Because of the new changes, this needs to be inside a @include multi-dir() { which goes at the end of the selector. When that is done, it can be merged. (Didn't merge before as I knew there will be changes with multi-dir)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh I get it now thanks. Will do

@sijav

sijav commented Jun 7, 2017

Copy link
Copy Markdown
Contributor Author

@AmitMY is it alright now?


@include multi-dir() {
top: 0;

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.

Can you remove this empty line + move //scss-lint:disable... to the first row of the mixin? something like

@include multi-dir() {
  // scss-lint:disable PropertySpelling
  top: 0;
  left: 0;
}

(because we don't won't to ignore it for the entire block)

@sijav sijav Jun 7, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@AmitMY sure but css lint gave me error because I hadn't put empty line in between ... I think it was because I had order problems? I'll commit the new changes asap

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.

Oh sure, linter rules over me ;)
So just that disable comment if you can

@sijav

sijav commented Jun 7, 2017

Copy link
Copy Markdown
Contributor Author

@AmitMY With this commit I get this PropertySortOrder: Property 'left' should have an empty line separating it from the previous group of properties ending with 'top'

@AmitMY

AmitMY commented Jun 7, 2017 •

Copy link
Copy Markdown
Contributor

@sijav

Oh sure, linter rules over me ;)

so final thing here, add an empty line there, and this seems good. Sorry for the messiness

@brandyscarney
brandyscarney merged commit bb966e5 into ionic-team:master Jun 7, 2017
@brandyscarney

Copy link
Copy Markdown
Member

Looks great, thank you!

@sijav
sijav deleted the rtl-fix-button-md-effect branch June 8, 2017 16:00
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