Custom style for ranges

pull/5880/head
Cagatay Civici 2024-06-13 01:16:03 +03:00
parent 2614bafa74
commit a0fb228dc1
4 changed files with 22 additions and 6 deletions

View File

@ -226,6 +226,11 @@ const theme = ({ dt }) => `
color: ${dt('datepicker.date.selected.color')};
}
.p-datepicker-day-selected-range {
background: ${dt('datepicker.date.range.selected.background')};
color: ${dt('datepicker.date.range.selected.color')};
}
.p-datepicker-today > .p-datepicker-day {
background: ${dt('datepicker.today.background')};
color: ${dt('datepicker.today.color')};
@ -236,6 +241,11 @@ const theme = ({ dt }) => `
color: ${dt('datepicker.date.selected.color')};
}
.p-datepicker-today > .p-datepicker-day-selected-range {
background: ${dt('datepicker.date.range.selected.background')};
color: ${dt('datepicker.date.range.selected.color')};
}
.p-datepicker-weeknumber {
text-align: center
}

View File

@ -67,10 +67,12 @@ export default {
},
date: {
hoverBackground: '{content.hover.background}',
selectedBackground: '{highlight.background}',
selectedBackground: '{primary.color}',
rangeSelectedBackground: '{highlight.background}',
color: '{content.color}',
hoverColor: '{content.hover.color}',
selectedColor: '{highlight.color}',
selectedColor: '{primary.contrast.color}',
rangeSelectedColor: '{highlight.color}',
width: '2rem',
height: '2rem',
borderRadius: '50%',

View File

@ -65,10 +65,12 @@ export default {
},
date: {
hoverBackground: '{content.hover.background}',
selectedBackground: '{highlight.background}',
selectedBackground: '{primary.color}',
rangeSelectedBackground: '{highlight.background}',
color: '{content.color}',
hoverColor: '{content.hover.color}',
selectedColor: '{highlight.color}',
selectedColor: '{primary.contrast.color}',
rangeSelectedColor: '{highlight.color}',
width: '2.5rem',
height: '2.5rem',
borderRadius: '50%',

View File

@ -69,10 +69,12 @@ export default {
},
date: {
hoverBackground: '{content.hover.background}',
selectedBackground: '{highlight.background}',
selectedBackground: '{primary.color}',
rangeSelectedBackground: '{highlight.background}',
color: '{content.color}',
hoverColor: '{content.hover.color}',
selectedColor: '{highlight.color}',
selectedColor: '{primary.contrast.color}',
rangeSelectedColor: '{highlight.color}',
width: '2rem',
height: '2rem',
borderRadius: '50%',