diff --git a/src/utilities/styled/button.css b/src/utilities/styled/button.css index f6b9dae742a..f105243d9c3 100644 --- a/src/utilities/styled/button.css +++ b/src/utilities/styled/button.css @@ -1,20 +1,20 @@ /* group */ .btn-group, .btn-group.btn-group-horizontal { - .btn:not(:first-of-type):not(:last-of-type) { + .btn:not(:first-child):not(:last-child) { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } - .btn:first-of-type:not(:last-of-type) { + .btn:first-child:not(:last-child) { @apply -ml-px -mt-0; border-top-left-radius: var(--rounded-btn, 0.5rem); border-top-right-radius: 0; border-bottom-left-radius: var(--rounded-btn, 0.5rem); border-bottom-right-radius: 0; } - .btn:last-of-type:not(:first-of-type) { + .btn:last-child:not(:first-child) { border-top-left-radius: 0; border-top-right-radius: var(--rounded-btn, 0.5rem); border-bottom-left-radius: 0; @@ -22,14 +22,14 @@ } } .btn-group.btn-group-vertical { - .btn:first-of-type:not(:last-of-type) { + .btn:first-child:not(:last-child) { @apply -ml-0 -mt-px; border-top-left-radius: var(--rounded-btn, 0.5rem); border-top-right-radius: var(--rounded-btn, 0.5rem); border-bottom-left-radius: 0; border-bottom-right-radius: 0; } - .btn:last-of-type:not(:first-of-type) { + .btn:last-child:not(:first-child) { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: var(--rounded-btn, 0.5rem);