Skip to content

Commit

Permalink
Add styling for disabled inputs (#250)
Browse files Browse the repository at this point in the history
* Add styling for disabled inputs

* Update version
  • Loading branch information
kaytcat authored Jul 19, 2017
1 parent 5e79337 commit 7eb17ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
border: 0;
background-color: transparent;
}

&[disabled] {
background-color: $gray-lighter;
cursor: not-allowed;
}
}

.formControlError {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"node_modules"
]
},
"version": "7.12.0",
"version": "7.12.1",
"description": "Shared components repo for kununu projects",
"main": "dist/components/index.js",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions playground/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ const App = ({location: {pathname, query}}) => (
name="select"
id="select"
isRequired
disabled
requiredLabel="Required"
value="option"
items={{option: 'Option', 'option-2': 'Option 2', 'option-3': 'Option 3'}} />
Expand Down

0 comments on commit 7eb17ed

Please sign in to comment.