react-calendar
react-calendar copied to clipboard
wrong inline style calculation with RTL layout
Hi,
When the layout is based on RTL (right-to-left) & showNeighboringMonth={false}
the calculation of margin
of the first item is hard coded to left, this makes the calendar looks like:
instead of that it should be margin-right
.
I've found that with css grid it can be solved with css! https://zellwk.com/blog/calendar-with-css-grid/
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
Any updates on this?
I think we could use margin-block-start to fix this. But margin-left would need to stay for compatibility reasons, so margin-block-end would need to reset it.
Why not css grid? 🙂
Fixed via #841