Looking to customize my react calendar with square tiles. Currently, the width is determined by the overall calendar width, but I want the height to match.
https://i.sstatic.net/3vVrq.png
Sample HTML:
<button class="react-calendar__tile react-calendar__tile--active react-calendar__tile--range react-calendar__tile--rangeStart react-calendar__tile--rangeEnd react-calendar__tile--rangeBothEnds react-calendar__month-view__days__day" type="button" style="flex: 0 0 14.2857%; overflow: hidden;">
<abbr aria-label="July 14, 2022">14</abbr>
</button>
Here's what I've attempted so far:
.booking-calendar .react-calendar__tile {
flex: 0 0 14.2857%;
overflow: hidden;
}
.booking-calendar .react-calendar__tile--active abbr {
outline: 2px solid #444444;
box-sizing: border-box;
width: 100%;
height: 100%;
border-radius: 40px;
font-weight: 700;
}
.booking-calendar .react-calendar__month-view__days__day abbr {
padding: 10px;
border-radius: 40px;
display: inline-block;
vertical-align: middle;
}