Skip to content
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

[DateTimePicker] Fix not visible selected tab icon #26624

Merged
merged 12 commits into from
Jun 15, 2021

Conversation

nikitabobers
Copy link
Contributor

@nikitabobers nikitabobers commented Jun 6, 2021

Closes #26283

Preview: https://deploy-preview-26624--material-ui.netlify.app/components/date-time-picker/#basic-usage

My suggestion:

  • Replace blue background and red indicator, because it is not readble in my opinion. For example unselected black icon on dark blue backround is hard to read.

current

  • In clock view time format buttons (PM/AM) are with the same backround colour as tabs:

current_clock

  • Use white background and blue indicator instead.

suggestion
suggestion_clock

Let me know what dou you think about it 😉

@mui-pr-bot
Copy link

mui-pr-bot commented Jun 6, 2021

Details of bundle changes (experimental)

Generated by 🚫 dangerJS against 1cb3a2d

@oliviertassinari oliviertassinari added the component: date time picker This is the name of the generic UI component, not the React module! label Jun 6, 2021
@oliviertassinari oliviertassinari changed the title Fix not visible selected tab icon [DateTimePicker] Fix not visible selected tab icon Jun 6, 2021
@oliviertassinari
Copy link
Member

oliviertassinari commented Jun 6, 2021

@nikitabobers It looks already much better. I have tried something else

  • remove paper box-shadow elevation
  • move indicator to the top
  • add border-top: box-shadow: 0px 1px 0px 0px inset rgb(0 0 0 / 12%)
  • fix sizes

What do you think?

Capture d’écran 2021-06-06 à 19 27 09

Capture d’écran 2021-06-06 à 19 26 48

the am/pm toggle so far away from one another seems plain wrong, but that's a different topic.

@nikitabobers
Copy link
Contributor Author

@oliviertassinari I agree. Now it's even better and easy for user to see which Tab are selected.

I'll to commit that changes.

For AM/PM buttons should we open another issue ?

@oliviertassinari
Copy link
Member

oliviertassinari commented Jun 7, 2021

For AM/PM buttons should we open another issue?

@nikitabobers Yes, it's off-topic to these changes. As for opening another issue, since the time picker is 1/5 of the use case for the date picker, I would say no real need, we might want to focus more on the date picker.

@watiko watiko mentioned this pull request Jun 9, 2021
1 task
@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Jun 10, 2021
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed the solution the extra mile. You can see one commit per improvement.

@oliviertassinari oliviertassinari requested a review from eps1lon June 10, 2021 20:41
@mnajdova mnajdova merged commit 5570b4a into mui:next Jun 15, 2021
@mnajdova
Copy link
Member

@nikitabobers it's a great first pull request on Material-ui 👌 Thank you for working on it!

@nikitabobers
Copy link
Contributor Author

Thank you!

@nikitabobers nikitabobers deleted the bugFix-26283 branch June 16, 2021 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: date time picker This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DateTimePicker] Tabs selected icon not visible (foreground=background color)
4 participants