From 8355aa363cdd7ee7dc35a59a94edd4fbb69de839 Mon Sep 17 00:00:00 2001 From: Joe Sweeney Date: Sun, 14 Oct 2018 01:22:41 -0600 Subject: [PATCH] Allow border radius if only one control in field If there is only one child inside a field with addons, the current first and last child selectors remove any radius. Since a single control would be both a first and last child at the same time, it gets canceled out. This leverages the :only-child property to not apply this rule if there is only one control. --- sass/elements/form.sass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sass/elements/form.sass b/sass/elements/form.sass index 7d9f9bf7..c73f10fd 100644 --- a/sass/elements/form.sass +++ b/sass/elements/form.sass @@ -437,13 +437,13 @@ $help-size: $size-small !default .input, .select select border-radius: 0 - &:first-child + &:first-child:not(:only-child) .button, .input, .select select border-bottom-right-radius: 0 border-top-right-radius: 0 - &:last-child + &:last-child:not(:only-child) .button, .input, .select select