Skip to content

Commit

Permalink
feat(input): Remove the border from disabled style
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 committed Sep 21, 2017
1 parent 505bf56 commit fe11fae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/.stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"each"
]
}
]
],
"declaration-empty-line-before": null
}
}
10 changes: 8 additions & 2 deletions src/components/Input/Input.modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.inputWrapper {
composes: thin rounded from '../Borders.modules.scss';
composes: row from '../Flexbox.modules.scss';

align-items: center;
padding: $spacing-base;
}
Expand All @@ -28,28 +29,33 @@

.default {
composes: inputWrapper defaultBgColor defaultBoxShadow;

border-color: $color-shuttle-grey;
}

.disabled {
composes: inputWrapper defaultBoxShadow;
composes: inputWrapper;

background-color: $color-athens-grey;
border-color: $color-shuttle-grey;
border-color: transparent;
}

.focused {
composes: inputWrapper defaultBgColor;

border-color: transparent;
box-shadow: 0 0 4px 1px $color-shuttle-grey;
}

.success {
composes: inputWrapper defaultBgColor defaultBoxShadow;

border-color: $color-primary;
}

.error {
composes: inputWrapper defaultBgColor defaultBoxShadow;

border-color: $color-cardinal;
}

Expand Down

0 comments on commit fe11fae

Please sign in to comment.