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
feat: add date-picker today actions #1058
Conversation
Deploy preview for fundamental-styles ready! Built with commit 7b6171c |
hey @prsdthkr how would this button look like in mobile view? Does it mean the Today button will be placed next to it? And if yes, is it a good UX? |
Hi @InnaAtanasova, good catch. After looking at the Fiori 3 specs I understand that in mobile view the datepicker should be rendered WITHIN a full-screen dialog component. This means a today button should render like this mock: I'm not sure if this is a good user experience. We may need some guidance from SAP UX. What do you think? |
in the desktop view, selecting a date (or selecting if in the moible view if selecting a date does not close the calendar, then neither should the My question is "why" does selecting a date not dismiss the calendar on mobile? |
@InnaAtanasova @prsdthkr I think we should ping this to the designers and also include mobile example in pattern section. @prsdthkr Could you by the way fix calendar navigation buttons? |
PR title should not be docs because it is changing the markup |
@stefanoScalzo I'm not sure if |
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.
I would mark it as breaking for removing/adding fd-button--compact
class, the footer additions aren't breaking unless they're required.
Based on inputs from SAP UX and @bcullman, the today button will act as a navigational element in mobile view. Hence it will appear in the "upper right most corner" according to inputs from SAP UX. I have mocked this below. Would like to know what the designers think. Ideally we would be providing two today buttons (header and footer) and users can enable these based on desktop or mobile use case. |
per this PR description, it shows the “today” button as part of the default datepicker (before/after). Instead, the today button should be implemented as a feature, that is OFF by default. additionally, consider creating 2 today buttons
iteration on the style of a "today-nav" can be done in a follow up PR, as long as the semantic HTML is in place, someone else can refine that style at a later when it's required. |
You are using aria controls but there is no element with that id |
Can you please include the mobile version in the examples please |
@stefanoScalzo I've added the DatePicker examples for mobile landscape and portrait mode with today navigation, based on the corresponding examples in Calendar. Should the mobile examples from Calendar be removed? Also now that I think about this, should the today navigation button be part of the Calendar spec? |
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.
LGTM
Description
Screenshots
Please check whether the PR fulfills the following requirements
https://github.com/SAP/fundamental-styles/wiki/PR-Review-Checklist