Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

refactor(select): use line ripple #2544

Merged
merged 17 commits into from
Apr 12, 2018
Merged

Conversation

moog16
Copy link
Contributor

@moog16 moog16 commented Apr 9, 2018

fixes #2129

@moog16 moog16 changed the base branch from master to refactor/select/floating-label-replacement April 9, 2018 23:35
@moog16 moog16 changed the base branch from refactor/select/floating-label-replacement to refactor/select/use-floating-label April 9, 2018 23:35
@codecov-io
Copy link

codecov-io commented Apr 9, 2018

Codecov Report

Merging #2544 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2544      +/-   ##
==========================================
- Coverage   98.62%   98.61%   -0.01%     
==========================================
  Files         101       98       -3     
  Lines        4210     4187      -23     
  Branches      532      532              
==========================================
- Hits         4152     4129      -23     
  Misses         58       58
Impacted Files Coverage Δ
packages/mdc-select/constants.js 100% <ø> (ø) ⬆️
packages/mdc-textfield/constants.js 100% <ø> (ø) ⬆️
packages/mdc-textfield/index.js 95.51% <100%> (ø) ⬆️
packages/mdc-select/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a9a890...95da9e3. Read the comment docs.

@williamernest williamernest self-assigned this Apr 9, 2018
Copy link
Contributor

@williamernest williamernest left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lynnmercier lynnmercier left a comment

Choose a reason for hiding this comment

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

Its nice you didnt have to change mdc-select/foundation.js at all

@@ -76,18 +82,26 @@
}

@mixin mdc-select-bottom-line-color_($color) {
.mdc-select__bottom-line {
@include mdc-select-bottom-line-fill-color($color);
.mdc-line-ripple {
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think you need to set the mdc-line-ripple here

}

.mdc-select__bottom-line::after {
@include mdc-select-bottom-line-fill-color($color);
.mdc-line-ripple::after {
Copy link
Contributor

Choose a reason for hiding this comment

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

::after?? whats this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what it was even doing before. Removing the rule.

@@ -26,7 +26,7 @@ export const numbers = {

export const strings = {
CHANGE_EVENT: 'MDCSelect:change',
BOTTOM_LINE_SELECTOR: '.mdc-select__bottom-line',
BOTTOM_LINE_SELECTOR: '.mdc-line-ripple',
Copy link
Contributor

Choose a reason for hiding this comment

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

rename this to LINE_RIPPLE_SELECTOR?

@@ -21,7 +21,7 @@ import {assert} from 'chai';
import {MDCFloatingLabel} from '../../../packages/mdc-floating-label/index';

const getFixture = () => bel`
<div class="mdc-floating-label"></div>
<label class="mdc-floating-label"></label>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this change snuck in here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is done on purpose. You're right in that it is more related to the floating label PR, but it wasn't caught until doing changes with line-ripple.

@moog16 moog16 changed the base branch from refactor/select/use-floating-label to master April 12, 2018 20:08
@moog16 moog16 merged commit 9938d31 into master Apr 12, 2018
@moog16 moog16 deleted the refactor/select/use-line-ripple branch April 12, 2018 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Select to use line ripple
4 participants