Fix buttonset styling when only a single button is present.

pull/4468/head
Michael Aspetsberger 2023-09-19 11:10:37 +02:00 committed by GitHub
parent 98afeacb55
commit 2ff4257421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -60,12 +60,12 @@ const buttonStyles = `
border-radius: 0;
}
.p-buttonset .p-button:first-of-type {
.p-buttonset .p-button:first-of-type:not(:only-of-type) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.p-buttonset .p-button:last-of-type {
.p-buttonset .p-button:last-of-type:not(:only-of-type) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}