-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify CalendarDay dom #291
Simplify CalendarDay dom #291
Conversation
src/components/CalendarDay.jsx
Outdated
|
||
const propTypes = { | ||
className: PropTypes.string.isRequired, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want to be passing down className
A lot of the motivation for the previous dom structure was to keep all the table stuff in one file, but that may not be worth it. I really don't think we should expose |
Thanks @majapw, I've removed the |
d7bbf89
to
d5cfcd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me.
Hilariously, I'm pretty sure this is a return to code we had before. Whoops.
Can styling changes be considered 'breaking?' Just a note that this might break styling for anyone who has styled the day cells (e.g. me). For what it's worth it's an easy fix, but I was very confused for a second as to why none of my styles worked any more (package had automatically updated from Cheers! |
Whoops! You know the thought had crossed my mind, but you are probably right in that this should ahve been marked as breaking. @ljharb do you have any advice? |
If that's the case, we should revert it in the v6 line and publish a v6.0.3, and then re-revert it and publish a v7 (or, find a way to make it not breaking) |
FWIW for Thanks for getting back on it quickly though! 👍 |
Hi @JaKXz @timhwang21 I just released v6.1.0 which includes a revert of this change. I'll release v7.0.0 shortly! |
…dar-day-dom"" This reverts commit dd44daf.
to: @majapw @ljharb
Simplifies the dom/styles for calendar days from
<td><div><span>31</span></div></td>
to<td>31</td>
. The appearance remains unchanged.