-
Notifications
You must be signed in to change notification settings - Fork 841
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
remove showWeekNumbers from DatePicker unsupportedProps #7725
Conversation
💚 CLA has been signed |
👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually? |
buildkite test this |
@tomitank You'll need to sign the CLA agreement with the email address tied to your git commits. You can use |
@tomitank We cannot accept PRs without a signed contributor agreement. Moving this PR back into draft until one has been signed with the email address associated with the git commits. |
I signed, what next? :) |
buildkite test this |
Thanks @tomitank - since this materially affects UI (screenshot below of |
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
Thanks for the ping, @cee-chen. If we were to include this as a prop in EUI, I'd want to be sure that 1) it was off by default (which it sounds like it is) and 2) the week numbers were even more diminished and visibly divided than shown in your screenshot above. Perhaps something like the below example, which applies our lightest/disabled text color, replaces the gray background with dividing borders, and removes the That said, I suppose this brings up a larger operational question as to whether we should support this request. I personally can't think of an instance we'd want to use it in Kibana (or any other Elastic property using EUI), but there is obviously interest from external consumers. Do we wish to include prop options like this that aren't specifically used by Elastic in our design system? Or would doing so inadvertently encourage Elastic engineers to potentially use it (even if we don't want them to) or create opportunities for unintended inconsistency? Do our obligations lie primarily to supporting Elastic projects only or should we be giving equal weight to non-Elastic consumers with feature requests that will only be used externally? Do we have any thoughts on how we wish to operate in that regard? |
An annoying side note: we start running into color contrast / accessibility concerns at that point 😬 FWIW - I totally agree with you on concerns about encouraging use in Elastic products. Generally, while we're an open source library, Kibana remains our primary client/target and we want to set defaults for that while leaving enough escape hatches for other consumers. My 2c is I would consider a |
@cee-chen yes, i maked unique type to use this prop, but i think it's very popular feature (Kalendar Woche) in germany companies. |
Unfortunately, that isn't true. I had to update the CSS of EuiDatePicker in order for the week numbers to show with the correct font and styles (see 36a86db). Otherwise, it simply looks broken. And whenever styling comes into play, we do need a designer's input on things like this.
EUI is a branded and fairly opinionated design system intended primarily for Elastic usage - so our components deliberately do not allow all possible permutations of props/configurations. While we do try to be flexible enough to support a wide variety of consumers, there are some UX patterns we deliberately do not want to adopt. If an existing escape hatch exists for edge cases or non-Elastic consumers, we typically consider that 'good enough'. I apologize that this wasn't investigated more thoroughly before asking you to open a PR - we'll work on communicating that more clearly in the future. |
no offense: :)
Not problem, i would find this function useful, but if it is not included, then "hacking" remains :) |
Hey all. I think we should pause on this PR. I'm concerned about expanding the API for our DatePicker here to include a feature that we don't actually need. While it is nice to expose a feature of the underlying library, it would also force us to continue to support that if we were to ever change the underlying library, and it creates more surface area for us to support. Unless we have a clear use case or need for this in Elastic, I think we should avoid introducing this. I'll let this open for a little while longer to see if @MichaelMarcialis or @formgeist object, otherwise, we should plan to close this PR. Big apology to @tomitank for this. We super appreciate your willingness to make contributions to our library. |
closes #7668