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

chore(text-field): moved textarea sass into private mixins #1942

Merged
merged 11 commits into from
Jan 17, 2018

Conversation

moog16
Copy link
Contributor

@moog16 moog16 commented Jan 11, 2018

partial fix of: #1598
refactor sass for textarea invalid and focused states

@@ -432,91 +424,9 @@
}

.mdc-text-field--textarea {
@include mdc-text-field-textarea-corner-radius($mdc-text-field-border-radius);
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 all a copy paste into mixins_.scss

@@ -399,14 +399,6 @@
@include mdc-text-field-invalid_;
}

// stylelint-disable plugin/selector-bem-pattern

.mdc-text-field--invalid.mdc-text-field--textarea {
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 was moved into the bottom of the main textarea mixins_.scss selector

}
}

.mdc-text-field--textarea.mdc-text-field--focused {
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 was also moved into the bottom of the main textarea mixins_.scss selector

@codecov-io
Copy link

codecov-io commented Jan 11, 2018

Codecov Report

Merging #1942 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1942      +/-   ##
==========================================
- Coverage   99.43%   99.43%   -0.01%     
==========================================
  Files          84       84              
  Lines        3718     3710       -8     
  Branches      486      484       -2     
==========================================
- Hits         3697     3689       -8     
  Misses         21       21
Impacted Files Coverage Δ
packages/mdc-textfield/helper-text/foundation.js 93.1% <0%> (-1.5%) ⬇️
packages/mdc-menu/simple/constants.js 100% <0%> (ø) ⬆️

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 bffadd3...7a78704. Read the comment docs.

@lynnmercier lynnmercier self-assigned this Jan 11, 2018
@@ -243,6 +243,108 @@
}
}

@mixin mdc-text-field-textarea-invalid_ {
// stylelint-disable plugin/selector-bem-pattern
Copy link
Contributor

Choose a reason for hiding this comment

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

you dont need this stylelint disable/enable comments any more

background-color: $mdc-textarea-dark-background;
}

&--float-above {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this & syntax and just use .mdc-text-field__label--float-above

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.

LGTM

@moog16 moog16 merged commit 1e8970f into master Jan 17, 2018
@moog16 moog16 deleted the chore/textfield/textarea-sass-mixins branch January 17, 2018 17:19
acdvorak added a commit that referenced this pull request Jan 17, 2018
commit 1e8970f
Author: Matty Goo <[email protected]>
Date:   Wed Jan 17 09:19:54 2018 -0800

    chore(text-field): moved textarea sass into private mixins (#1942)

commit bffadd3
Author: Andrew C. Dvorak <[email protected]>
Date:   Wed Jan 17 09:09:56 2018 -0800

    style(demos): Clean up theme demo Sass and HTML (#1973)

    - Remove unused code
    - IE 11 compatible property values (`unset` -> `auto`)
    - Fix duplicate IDs
    - Use `--stroked` buttons instead of `--raised` for checkbox demo
    - Rename CSS classes to be more BEM-y
    - Rename and reorganize Sass demo vars
    - Reword text-field labels and helper text for clarity
    - Remove `getAll()`
    - Inline some JS vars

commit 3a1786f
Author: Dominic Carretto <[email protected]>
Date:   Wed Jan 17 11:37:03 2018 -0500

    fix(slider): Add MDCSliderFoundation export (#1959)

commit 815eade
Author: Simon Olofsson <[email protected]>
Date:   Wed Jan 17 17:36:07 2018 +0100

    docs(menu): Remove obsolete `mdc-simple-menu--open-from` classes. (#1927)

commit 6078784
Author: Chafic Najjar <[email protected]>
Date:   Wed Jan 17 18:26:00 2018 +0200

    docs: Rewrite all instances of "MDC-Web" as "MDC Web" (#1960)

    Resolves #1924

commit e87c110
Author: pndewit <[email protected]>
Date:   Wed Jan 17 17:23:03 2018 +0100

    docs(drawer): Fix missing link to temporary drawer demo (#1922)

commit 003dff4
Author: Chafic Najjar <[email protected]>
Date:   Wed Jan 17 18:20:35 2018 +0200

    docs: Fix broken links to AngularJS's Git commit guidelines (#1888)
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.

3 participants