mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5667 - Remove base option from theme config
This commit is contained in:
parent
6d688ef675
commit
0979dde96d
438 changed files with 10872 additions and 11957 deletions
|
@ -1,5 +1,39 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ dt }) => `
|
||||
.p-selectbutton {
|
||||
display: inline-flex;
|
||||
user-select: none;
|
||||
vertical-align: bottom;
|
||||
outline-color: transparent;
|
||||
border-radius: ${dt('rounded.base')};
|
||||
}
|
||||
|
||||
.p-selectbutton .p-togglebutton {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.p-selectbutton .p-togglebutton:focus-visible {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.p-selectbutton .p-togglebutton:first-child {
|
||||
border-top-left-radius: ${dt('rounded.base')};
|
||||
border-bottom-left-radius: ${dt('rounded.base')};
|
||||
}
|
||||
|
||||
.p-selectbutton .p-togglebutton:last-child {
|
||||
border-top-right-radius: ${dt('rounded.base')};
|
||||
border-bottom-right-radius: ${dt('rounded.base')};
|
||||
}
|
||||
|
||||
.p-selectbutton.p-invalid {
|
||||
outline: 1px solid ${dt('selectbutton.invalid.border.color')};
|
||||
outline-offset: 0;
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => [
|
||||
'p-selectbutton p-component',
|
||||
|
@ -11,5 +45,6 @@ const classes = {
|
|||
|
||||
export default BaseStyle.extend({
|
||||
name: 'selectbutton',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue