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
popup: split own functionality into target modifiers #968
Comments
After having some small meeting \w @veged @dfilatov we have an idea to split current
The downside of this decision is that we would have several more blocks instead of one block |
Another possible approach is to have a single Personally I don't like this idea, "modal popup" and "popup with target" would have different behaviour, as well as different implementation and CSS styles (according to our design guides). IMHO: it doesn't fill like a good architectural decision – different classes should be implemented in different consistent |
/cc @dfilatov @Coltspb let's eat 🐝 :) |
The thing I've noticed recently: this kind of abstraction could (well, maybe, would..?) be useful to implement suggest that we have on the search page of yandex.ru: |
After having some small discussion with myself, I think it may be unnecessary having this "abstract block". Because I haven't found any cases where this block actually needed(except
Another approach (as @narqo mentioned) is spliting popup into two modifiers:
Pros:
Cons:
I've a prototype with it, would you like to look at in WIP PR? :) |
@Coltspb advanced search at SERP has selects inside himself (as well as suggest may have some "popups", for example tooltips) |
@Coltspb also I'm pretty unsure about |
@veged the separation of theme into two modifiers has been made only for assets loading optimization. We can combine those themes in Yep, advanced search has selects, but they closes well by clicking on body. And suggest is regular popup, I don't see any problem with popovers inside himself (if popovers implemented using popup). Naming is the common problem ;) |
@Coltspb let's discuss it on meeting today at 16:00 |
After new conversation we considered following variant as the best one:
|
Wowowow, sounds good. As far as I understand, we can still use popup without |
@Coltspb What do you mean by "[..] for some inline block [..]"? Could you illustrate this case with some example? |
@narqo We discussed this at our first meeting, when we decided to create abstract block which should be mixed to popup or modal as well as to "some inline block which should close inner popups". For example, closable comment tree at my.at.yandex.ru or advanced search at SERP. |
popup
and modal
popup: split own functionality into target modifiers (close #968)
Update: See comments below for discussion. Final case: #968 (comment).
First of all -- we need good name for it! ;-)
It will provide functionality about:
The text was updated successfully, but these errors were encountered: