Replies: 2 comments
-
Here are my thoughts on the topic:
I see that we have an Active state and if there is no visual difference between Opened/Expanded and Active we might avoid adding one more state and use the Active one instead. Checking various sources, the main purpose of an Active state for such UI components is exactly to distinguish the state when the popup is opened/expanded. Unless there is specific need to visually distinguish Active and Opened state. Additionally, I checked the Figma design that we have for the DateTimePicker adn DropDownList and there is no Active state specifically provided so I think we can use it for the purpose to flag the open/expanded state. Of course, if we have a technical need for an Opened state we should also consider adding one in the spec (e.g., we have it already in a suite implemented).
In my opinion, that entirely depends on the use case of the animation container and to be brief:
|
Beta Was this translation helpful? Give feedback.
-
As far as Active/Opened/Expanded is concerned, I think that "Opened" conveys most clearly the actual state and meaning. "Active" might be a bit confusing, as most of these components are interactive when focused (and not opened) - the end user can change the value using the keyboard etc., whereas using "Opened" cannot bring any ambiguity. "Expanded" on the other hand seems more suitable for accordion-like components such as the PanelBar or ExpansionPanel. |
Beta Was this translation helpful? Give feedback.
-
With the creation of the Component specifications , I’ve stumbled upon a couple of question marks and I wanted to hear your opinion about them. We have currently created specs for around 60 components and this is their first version so any changes, feedback and comments are more than welcomed.
Now straight to the questions:
Currently all component specs are explicitly exporting states and options, e.g
However, we also have components, such as the dropdowns and the pickers which have popups hidden by default. When they are expanded, the popups are displayed. We should add the popup rendering as part of the component’s spec, but shall we count the OPENED state as part of the other states- hover, focus, etc. or it should come as a prop (as currently implemented)?
Another question related to the popup of the dropdowns and pickers is whether the animation container and the child-animation container element should be added to the specs or just the Popup element (as it’s currently implemented) ? We are currently trying not to overcomplicate the specs, but if you feel that these elements should be present, we’ll add them.
@telerik/kendo-dev-leads , @telerik/kendo-front-end, @telerik/theme-builder-pro-team
Beta Was this translation helpful? Give feedback.
All reactions