Skip to content

Commit

Permalink
Issue #15 #19: Remove transitions and ensure that fieldset type is de…
Browse files Browse the repository at this point in the history
…fined before comparing
  • Loading branch information
Zoltan Horvath committed Jan 8, 2019
1 parent effd4e7 commit ccd24d2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion claro.theme
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function claro_preprocess_fieldset(&$variables) {
$element = $variables['element'];
$composite_types = ['checkboxes', 'radios'];

if (in_array($element['#type'], $composite_types) && !empty($variables['element']['#children_errors'])) {
if (!empty($element['#type']) && in_array($element['#type'], $composite_types) && !empty($variables['element']['#children_errors'])) {
$variables['legend_span']['attributes']->addClass('has-error');
}

Expand Down
1 change: 0 additions & 1 deletion css/src/components/form--checkbox-radio--ie.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

.form-boolean::-ms-check {
transition: all var(--speed-transition) ease-in-out 0s, background-image 0s linear 0s;
border: 1px solid var(--color-input-border);
display: inline-block;
width: 18px;
Expand Down
1 change: 0 additions & 1 deletion css/src/components/form--checkbox-radio.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
* Input appearance.
*/
.form-boolean {
transition: all var(--speed-transition) ease-in-out 0s, background-image 0s linear 0s;
appearance: none;
border: 1px solid var(--color-input-border);
display: inline-block;
Expand Down
1 change: 0 additions & 1 deletion css/src/components/form--text.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
font-size: 1em;
line-height: 1.5;
color: var(--color-input-fg);
transition: border linear var(--speed-transition), box-shadow linear var(--speed-transition);
min-height: 3em; /* iOS. */
}

Expand Down

0 comments on commit ccd24d2

Please sign in to comment.