2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-selectbutton {
|
|
|
|
display: inline-flex;
|
|
|
|
user-select: none;
|
|
|
|
vertical-align: bottom;
|
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-02 08:57:41 +00:00
|
|
|
.p-selectbutton .p-togglebutton {
|
|
|
|
border-radius: 0;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-02 08:57:41 +00:00
|
|
|
.p-selectbutton .p-togglebutton:focus-visible {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: relative;
|
2024-04-02 08:57:41 +00:00
|
|
|
z-index: 1;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-02 08:57:41 +00:00
|
|
|
.p-selectbutton .p-togglebutton:first-child {
|
|
|
|
border-top-left-radius: ${dt('rounded.base')};
|
|
|
|
border-bottom-left-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-02 08:57:41 +00:00
|
|
|
.p-selectbutton .p-togglebutton:last-child {
|
|
|
|
border-top-right-radius: ${dt('rounded.base')};
|
|
|
|
border-bottom-right-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-selectbutton.p-invalid {
|
2024-04-02 08:57:41 +00:00
|
|
|
outline: 1px solid ${dt('selectbutton.invalid.border.color')};
|
|
|
|
outline-offset: 0;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|