diff --git a/sass/form/tools.scss b/sass/form/tools.scss index 741a5c7c1e..05ee805f18 100644 --- a/sass/form/tools.scss +++ b/sass/form/tools.scss @@ -84,11 +84,11 @@ $field-block-spacing: 0.75rem !default; justify-content: flex-start; .#{iv.$class-prefix}control { - &:not(:last-child) { + &:not(:last-of-type) { margin-inline-end: -1px; } - &:not(:first-child):not(:last-child) { + &:not(:first-of-type):not(:last-of-type) { .#{iv.$class-prefix}button, .#{iv.$class-prefix}input, .#{iv.$class-prefix}select select { @@ -96,7 +96,7 @@ $field-block-spacing: 0.75rem !default; } } - &:first-child:not(:only-child) { + &:first-of-type:not(:only-of-type) { .#{iv.$class-prefix}button, .#{iv.$class-prefix}input, .#{iv.$class-prefix}select select { @@ -105,7 +105,7 @@ $field-block-spacing: 0.75rem !default; } } - &:last-child:not(:only-child) { + &:last-of-type:not(:only-of-type) { .#{iv.$class-prefix}button, .#{iv.$class-prefix}input, .#{iv.$class-prefix}select select {