Skip to content

Commit

Permalink
(less) fixes twbs#4526: box-shadow on .radio and .checkbox if .contro…
Browse files Browse the repository at this point in the history
…l-group has a form field state
  • Loading branch information
mdo committed Aug 21, 2012
1 parent 878d440 commit bc75618
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
select,
textarea {
color: @textColor;
}
input,
select,
textarea {
border-color: @borderColor;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
&:focus {
Expand Down
13 changes: 13 additions & 0 deletions tests/css-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,19 @@ <h4>Fluid grid sizing</h4>
<h1>Forms</h1>
</div>

<h4>Horizontal form errors</h4>
<form class="form-horizontal">
<div class="control-group error">
<label class="control-label" for="inputError">Radio with error</label>
<div class="controls">
<label class="radio">
<input type="radio" id="inputError"> Oh hai
</label>
<span class="help-inline">Please correct the error</span>
</div>
</div>
</form>

<div class="row">
<div class="span4">
<h4>Prepend and append on inputs</h4>
Expand Down

0 comments on commit bc75618

Please sign in to comment.